-
I was wondering if it was possible through an extension or agent instrumentation to grab values from MDC and add them as span attributes. Modifying the user app is not possible at the moment so I'll have to add MDC values to the span through extension jar. I've tried the following without success:
I'm not sure what I'm doing wrong. Some help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Answered by
sakariye
Aug 16, 2024
Replies: 1 comment 1 reply
-
Have you solved the problem of programmatic MDC obtaining Span related information values? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ended up instrumenting the preHandle method of a HandlerInterceptor on method exit. This is where the MDC values are set for my project. The MDC was accessible in the advice class.