Repository navigation
Replies: 1 comment
|
A useful boundary here is: one OpenTelemetry span can be exported to multiple backends, but it cannot have two trace IDs. A For Jaeger, Datadog, GCP, and other OTel-compatible destinations, prefer one If Sentry must intentionally use different navigation/session boundaries, treat it as a parallel trace system rather than mutating the OTel context:
Before maintaining separate traces, check whether your current Sentry integration can ingest the same OTel spans. If it can, exporting the canonical OTel trace to Sentry is simpler and preserves cross-backend correlation. References: Tracing API, Propagators API, and NodeSDK configuration. |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
What is the optimal and suggested way, if even possible, to somehow be able to host configurations for various different backends that could not adhere to the spec completely? In the same process.
For example, I use Sentry, which treats
traceIdmore like a session ID - i.e. multiple requests on the same navigation page are part of the same trace and Sentry has a concept of transaction as an individual part of the trace. Sentry usessentry-traceas a propagation carrier set through the SDK or manually.At the same time, I use GCP loadbalancer, which will use the provided W3C
traceparentor set one in the logs and ongoing request to the backend. But for those I don't want Sentry behaviour I would like to be able to differentiate otel trace from trace in GCP logs.Also I could have different OTel-compliant backends like Jaeger, Datadog, whatnot.
How to connect those things so I have kind of duality between processing/propagating context and creating spans for different backend needs and in the same time keep them as close as possible.
Seems like because of how Sentry works I will need a pair of different
traceIdto use for it and the rest. Does it mean I would also need to have completely different spans?Is there an example that deals with those issues? Or way of thinking about it?
Thanks!
All reactions