Reputation: 91
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
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:
@Observed
: https://micrometer.io/docs/observation#_using_annotations_with_observed.observe(...)
: https://micrometer.io/docs/observation#_introductionUpvotes: 1