Skip to content

chore(tracing): Enforce strict trace continuation#1218

Open
szokeasaurusrex wants to merge 2 commits into
szokeasaurusrex/org-id-baggage-parsingfrom
strict-trace-continuation
Open

chore(tracing): Enforce strict trace continuation#1218
szokeasaurusrex wants to merge 2 commits into
szokeasaurusrex/org-id-baggage-parsingfrom
strict-trace-continuation

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jul 1, 2026

Copy link
Copy Markdown
Member

Compare incoming and SDK organization IDs before transaction sampling so incompatible incoming traces start a new trace instead of inheriting the parent trace and sampling decision.

Also keep org ID parsing behind the client feature and document the behavior as a trace-continuation safety improvement.

Fixes #1201
Fixes RUST-253

@szokeasaurusrex szokeasaurusrex changed the title strict trace continuation fix(tracing): Enforce strict trace continuation Jul 1, 2026
@linear-code

linear-code Bot commented Jul 1, 2026

Copy link
Copy Markdown

RUST-253

Compare incoming and SDK organization IDs before transaction sampling so incompatible incoming traces start a new trace instead of inheriting the parent trace and sampling decision.

Also keep org ID parsing behind the client feature and document the behavior as a trace-continuation safety improvement.

Fixes [#1201](#1201)
Fixes [RUST-253](https://linear.app/getsentry/issue/RUST-253)
@szokeasaurusrex szokeasaurusrex force-pushed the strict-trace-continuation branch from 3030840 to f11e463 Compare July 1, 2026 16:55

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new logic is here, the rest is config-gating to avoid dead code warnings and tests

@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review July 1, 2026 16:57
@szokeasaurusrex szokeasaurusrex requested a review from lcian as a code owner July 1, 2026 16:57
@szokeasaurusrex szokeasaurusrex changed the title fix(tracing): Enforce strict trace continuation chore(tracing): Enforce strict trace continuation Jul 2, 2026
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.

Enforce strict trace continuation when starting transactions

1 participant