Replies: 1 comment 5 replies
-
Hi @rnterbush - the opentelemetry-api artifact methods are safe to use with the agent. However, the version of that artifact has to match 1:1 with the version of the agent you are using. Can you clarify which versions of opentelemetry-api and the agent you are using? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I recently had a conversation with @jkwatson on gitter regarding some issues with span contexts, and he suggested I start a discussion here. My issue was with a local app similar to the Http example, but I've reproduced similar behavior with the exact example in the repo.
The gist of the problem is that parent contexts don't get set correctly for spans created using the sdk, when the ot javaagent is attached. This applies to both out of process contexts passed through propagators, and inline contexts passed through makeCurrent() and Context.current().
To document my findings:
Here's output from the client/server without a javaagent attached:
And now here is the same scenario with the OT javaagent attached:
Notice that the traceIds of the downstream server span don't match the ones exported by the HttpClient application.
The reason I've posted this as a discussion is to ask "Are there APIs that are safe to use in conjunction with the agent vs. ones that are unsafe?" If so, this should probably be well documented, because a use may start with the API and graduate to include the OT agent, which currently make break their API functionality.
Beta Was this translation helpful? Give feedback.
All reactions