How to communicate between agent context and application context #7485
-
The situation is: I create a new context in my application by I wonder if I should not put Context directly into the map, but replace it with the text converted by |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hey @wallezhang , The javaagent should propagate context automatically over threads in most cases (e.g.
The application and the agent are using two different copies of the OpenTelemetry API. The agent one is shaded (thus the When you put the value of |
Beta Was this translation helpful? Give feedback.
Hey @wallezhang ,
The javaagent should propagate context automatically over threads in most cases (e.g.
Context.current()
called in aRunnable
should return the context captured at the time when the runnable was submitted to an executor). Does that not work for you?T…