Description
Problem Statement
I have an existing setup where backend services have tracing enabled via OpenTelemetry, and is not using Sentry for tracing. I'm now looking to add Sentry to a browser UI that will interact with these services, and would like to be able to have the Sentry client traces play nice with the existing backend trace setup.
I appreciate that this setup will allow only partial visibility of traces in Sentry, and only partial visibility of traces in my existing setup, but having them tied together end-to-end would at least allow for easily identifying traces in my backend system relating to a request in the UI or vice versa.
Sentry is already using a format for trace headers compatible with the standard traceparent
, which is used in my backend services, so if the Sentry instrumentation could be set to send this in the traceparent
standard header instead of sentry-trace
, things would "just work".
Solution Brainstorm
Make it possible to configure the header used by Sentry to send trace information on outbound requests and/or capture it on inbound requests to allow for compatibility with other setups across a larger system. In the simplest form this would just be another setting for "trace header".