cloud_7
cloud_7

Reputation: 91

Micrometer doesn't work on Quartz after Spring Boot 3 migration

After migrating on spring boot 3, I changed spring-sleuth to micrometer. After that change traceId or spanId are no longer generated in methods, which are managed by Quartz Jobs.

How to fix it?

Upvotes: 2

Views: 1727

Answers (1)

Jonatan Ivanov
Jonatan Ivanov

Reputation: 6931

Right now this is not implemented (@Scheduled is planned) but right now, as a workaround, you can add the @Observerved annotation (+create an ObservedAspect bean) on your methods that Quartz will call or create an Observation manually:

Upvotes: 1

Related Questions