Skip to content

Sentry.OpenTelemetry.Exporter should accept and propagate both Sentry and W3C headers by default #5210

Closed as not planned

Description

@ericsampson

Problem Statement

The new Sentry.OpenTelemetry.Exporter is awesome, but IMO it's an adoption footgun that out of the box it only accepts/propagates Sentry headers.

I strongly feel that the OOTB default is that it should accept and propagate both Sentry and W3C headers, transparently.

Thanks!

Solution Brainstorm

new CompositeTextMapPropagator(new TextMapPropagator[] { new TraceContextPropagator(), // W3C traceparent + tracestate new SentryPropagator(), // sentry-trace + baggage (also inherits BaggagePropagator)

Activity

  1. added
    Feature
    .NET
    on May 8, 2026
  2. linear-code commented on May 8, 2026

    @linear-code
  3. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 8, 2026
  4. jamescrosswell commented on May 11, 2026

    @jamescrosswell
    Collaborator
  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 11, 2026
  6. ericsampson commented on May 11, 2026

    @ericsampson
    ContributorAuthor

    Awesome @jamescrosswell, cheers :)

  7. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 11, 2026
  8. jamescrosswell commented on Jun 22, 2026

    @jamescrosswell
    Collaborator

    @ericsampson thanks for raising this. Per our docs, we'll need to implement a slightly different solution though. See:

    Once that's done, you'll need to configure the propagation settings via the OTEL SDK instead of Sentry... for the time being, you can continue to pass in a composite propagator via the defaultTextMapPropagator argument when initialising Sentry's OTLP integration.

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

Metadata

Metadata

Labels

.NETFeatureState: UnreproducibleState: Won't Do

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions