Issue with Trace Context Sharing Across HTTP Requests in Spring WebFlux Application #11283
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It is a bug in your manual instrumentation. Scope returned from |
Beta Was this translation helpful? Give feedback.
-
Thank you for the suggestions, @laurit. I have updated the code snippet with
Also, I would like to confirm my understanding regarding the scope closure in the
I find this approach to setting baggage a bit verbose and complex, which may pose challenges for teams, especially when integrating it into our existing codebase. Could you suggest any more convenient utility methods or best practices for setting baggage more efficiently? |
Beta Was this translation helpful? Give feedback.
I would try wrapping the mono with something like
opentelemetry-java-instrumentation/instrumentation/spring/spring-webflux/spring-webflux-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/webflux/v5_0/server/AdviceUtils.java
Lines 56 to 72 in b93537d