Disable sentry-trace headers
Is there an existing issue for this?
- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- [X] I have reviewed the documentation https://docs.sentry.io/
- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
8.5.0
Framework Version
2.5.10
Link to Sentry event
No response
SDK Setup
Sentry.init({ dsn: "https://xxxxx.ingest.sentry.io/xxxxx", enableTracing: false, sampleRate: 0, tracesSampleRate: 0, autoSessionTracking: false, tracePropagationTargets: ["example.com"], });
Steps to Reproduce
See above code
Expected Result
Sentry should simply be processing server exceptions and logging them. No other 'features' should be enabled.
Actual Result
I am trying to use Sentry to capture server errors but I don't know how to prevent it from just taking over. It's adding sentry-trace and baggage headers to HTML pages, and there seems to be no way to disable it. Things seem opt-out when they should be opt-in.
From what I can tell the tracePropagationTargets setting should allow me to disable it, but it doesn't seem to work. I've set tracePropagationTargets to example.com but it's still sending out those headers with all requests.
I am caching my HTML pages at the edge which would probably make these headers useless anyways.
Another user brought up a similar issue before.