Skip to content

Support changing the header used for Sentry tracing across network hops #5158

Description

@SoftMemes

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".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions