Skip to content

chore(tracing): Enforce strict trace continuation - #1218

Merged
szokeasaurusrex merged 6 commits into
szokeasaurusrex/org-id-baggage-parsingfrom
strict-trace-continuation
Jul 28, 2026
Merged

szokeasaurusrex merged 6 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

@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
@szokeasaurusrex
szokeasaurusrex requested a review from a team as a code owner July 7, 2026 11:05
@szokeasaurusrex
szokeasaurusrex force-pushed the strict-trace-continuation branch from f11e463 to dccf418 Compare July 7, 2026 11:05
@szokeasaurusrex
szokeasaurusrex force-pushed the strict-trace-continuation branch from dccf418 to 78f09ee Compare July 8, 2026 13:56
@szokeasaurusrex
szokeasaurusrex force-pushed the strict-trace-continuation branch 2 times, most recently from f2d28da to 802f1a1 Compare July 9, 2026 13:17
@szokeasaurusrex
szokeasaurusrex marked this pull request as draft July 9, 2026 14:37
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review July 10, 2026 08:32
@szokeasaurusrex
szokeasaurusrex requested review from Litarnus and giortzisg and removed request for alexander-alderman-webb July 20, 2026 15:08
@szokeasaurusrex
szokeasaurusrex force-pushed the strict-trace-continuation branch from 45a0494 to 0766617 Compare July 20, 2026 16:02
cursor[bot]

This comment was marked as resolved.

@szokeasaurusrex
szokeasaurusrex marked this pull request as draft July 20, 2026 16:06
@szokeasaurusrex
szokeasaurusrex force-pushed the strict-trace-continuation branch 2 times, most recently from 52fc35e to f707051 Compare July 20, 2026 16:29
@szokeasaurusrex
szokeasaurusrex force-pushed the strict-trace-continuation branch from ee8c08f to dd3bbdc Compare July 24, 2026 10:11
@szokeasaurusrex
szokeasaurusrex removed the request for review from lcian July 24, 2026 10:11
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review July 24, 2026 10:11

@Litarnus Litarnus left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@szokeasaurusrex
szokeasaurusrex force-pushed the strict-trace-continuation branch from dd3bbdc to 28b9e00 Compare July 27, 2026 15:39
szokeasaurusrex and others added 6 commits July 27, 2026 18:21
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 61f551c to 28e7eca Compare July 27, 2026 16:22
@szokeasaurusrex
szokeasaurusrex merged commit 4e0e2d2 into master Jul 28, 2026
32 of 49 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the strict-trace-continuation branch July 28, 2026 12:10
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

3 participants