This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
How to enrich context in one place and use the added value elsewhere #158
Unanswered
gustaff-weldon
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Not sure what you mean by "the code which add spans executes somewhere else when handling graphql request." Is this referring to some sort of thread pool situation? I know there have been several issues with the graphql instrumentation context propagation because of some advanced handling within their module. |
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
-
I'm working on instrumenting several services in the request chain with a distributed traces. I got those working and can see nice waterfalls in zipkin.
Next step is to enrich traces with user data. I can obtain it in one service, would like to add it to all spans in that service (and later in further services, but that's not in the scope of this discussion).
My code works roughly like this:
BaggageSpanProcessor
is a simple processor that is supposed to add all Baggage entries to every span:How do I add the baggage to current context that the processor would see it?
I cannot make the context active with
as the code which add spans executes somewhere else when handling graphql request.
Beta Was this translation helpful? Give feedback.
All reactions