How do I refer to traceparent from incoming request in startActiveSpan()? #3425
Replies: 3 comments 2 replies
-
To create a span context from remote services, you can check out https://opentelemetry.io/docs/concepts/signals/traces/#context-propagation and https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/propagation.md. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately that doesn't answer any questions. It documents that context can be propagated, but at no point does it discuss how that's achieved. The answer to the question is in https://github.com/open-telemetry/opentelemetry-js/blob/main/api/src/propagation/TextMapPropagator.ts#L62 - |
Beta Was this translation helpful? Give feedback.
-
@legendecas I haven't figured out the github to website mapping. How would I go about cleaning up these docs so the next person has an easier time? I'd like to add a crosslink at least, but it also seems like maybe the same concepts are being described in too many places and some fidelity is lacking. Might be that one of those pages should merge into the other... |
Beta Was this translation helpful? Give feedback.
-
I'm trying to figure out how to associate traces in one service with spans in another. I would have expected this to be documented somewhere prominently but I have had no luck so far.
I'm using opentelemetry-sdk-trace-node along with the W3TracePropagator for outgoing requests but for incoming I haven't been able to discern actual logic in the instrumentation-express module.
Beta Was this translation helpful? Give feedback.
All reactions