Skip to content

docs(otlp): Add tail-based sampling warning for propagateTraceparent#18278

Open
dingsdax wants to merge 3 commits into
masterfrom
dingsdax/docs/otel-tail-sampling-traceparent
Open

docs(otlp): Add tail-based sampling warning for propagateTraceparent#18278
dingsdax wants to merge 3 commits into
masterfrom
dingsdax/docs/otel-tail-sampling-traceparent

Conversation

@dingsdax
Copy link
Copy Markdown
Contributor

@dingsdax dingsdax commented Jun 5, 2026

DESCRIBE YOUR PR

When propagateTraceparent is enabled, the frontend SDK's sampling decision is encoded in the W3C traceparent header. If the OTel backend uses a parentbased_* sampler (the default), it honors that decision and silently bypasses the collector's tail-based sampler. This is a subtle gotcha that customers hit without understanding why.

This PR:

  • Adds a <Alert level="warning"> block to the Sentry with OTel concepts page explaining the interaction and recommending OTEL_TRACES_SAMPLER=always_on as the fix
  • Adds a cross-reference note to the propagateTraceparent <SdkOption> block across all 8 platform options pages (JS, Android, Java, React Native, Flutter, Go, Apple, Native) via a shared include partial (includes/platforms/configuration/options/propagate-traceparent-tail-sampling.mdx)

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

When propagateTraceparent is enabled, the frontend SDK's sampling
decision propagates via the traceparent header. OTel backends using
the default parentbased_* sampler honor that decision, silently
bypassing collector tail-based sampling. Add a warning Alert to the
Sentry with OTel concepts page explaining this interaction and
recommending OTEL_TRACES_SAMPLER=always_on as the fix.

Add a cross-reference note to the propagateTraceparent SdkOption
block across all 8 platform options pages (JS, Android, Java, React
Native, Flutter, Go, Apple, Native) via a shared include partial.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Jun 5, 2026 10:19pm
sentry-docs Ready Ready Preview, Comment Jun 5, 2026 10:19pm

Request Review

@codeowner-assignment codeowner-assignment Bot requested review from a team June 5, 2026 14:37
@dingsdax dingsdax requested review from cleptric and ndmanvar June 5, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant