Skip to content

chore(tracing): Store incoming baggage org ID#1209

Open
szokeasaurusrex wants to merge 1 commit into
szokeasaurusrex/trace-propagation-contextfrom
szokeasaurusrex/org-id-baggage-parsing
Open

chore(tracing): Store incoming baggage org ID#1209
szokeasaurusrex wants to merge 1 commit into
szokeasaurusrex/trace-propagation-contextfrom
szokeasaurusrex/org-id-baggage-parsing

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jun 29, 2026

Copy link
Copy Markdown
Member

Parse sentry-org_id from incoming baggage headers alongside sentry-trace and store it on TransactionContext.

This keeps the change behavior-neutral while making the incoming org ID available for strict trace continuation work in a #1201. Malformed or missing org IDs are treated as absent, and baggage without a valid sentry-trace does not attach incoming org metadata to a fresh transaction context.

Closes #1200
Closes RUST-252
References #1201
References RUST-253

@szokeasaurusrex szokeasaurusrex changed the title szokeasaurusrex/org id baggage parsing chore: Parse org_id from baggage header Jun 29, 2026
@linear-code

linear-code Bot commented Jun 29, 2026

Copy link
Copy Markdown

RUST-252

RUST-253

@szokeasaurusrex szokeasaurusrex changed the base branch from szokeasaurusrex/split-mod-performance to szokeasaurusrex/trace-propagation-context June 30, 2026 11:25
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/org-id-baggage-parsing branch 3 times, most recently from 08ed784 to bed6146 Compare June 30, 2026 11:37
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review June 30, 2026 11:37
@szokeasaurusrex szokeasaurusrex requested a review from lcian as a code owner June 30, 2026 11:37
@szokeasaurusrex szokeasaurusrex marked this pull request as draft June 30, 2026 11:53
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/org-id-baggage-parsing branch from bed6146 to ca05426 Compare June 30, 2026 12:11
@szokeasaurusrex szokeasaurusrex changed the title chore: Parse org_id from baggage header chore(tracing): Store incoming baggage org ID Jun 30, 2026
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/org-id-baggage-parsing branch from ca05426 to afb3de5 Compare June 30, 2026 12:14
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review June 30, 2026 12:15
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/trace-propagation-context branch from 3f34a77 to bedc2a2 Compare July 7, 2026 11:05
@szokeasaurusrex szokeasaurusrex requested a review from a team as a code owner July 7, 2026 11:05
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/org-id-baggage-parsing branch from afb3de5 to 8515ce7 Compare July 7, 2026 11:05
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/trace-propagation-context branch from bedc2a2 to b686b94 Compare July 8, 2026 13:56
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/org-id-baggage-parsing branch 2 times, most recently from 8524289 to becf1b2 Compare July 8, 2026 14:04
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/trace-propagation-context branch from b686b94 to 9fae22a Compare July 8, 2026 14:04
Parse `sentry-org_id` from incoming `baggage` headers alongside `sentry-trace` and store it on `TransactionContext`.

This keeps the change behavior-neutral while making the incoming org ID available for strict trace continuation work in a follow-up change. Malformed or missing org IDs are treated as absent, and baggage without a valid `sentry-trace` does not attach incoming org metadata to a fresh transaction context.

Closes [#1200](#1200)
Closes [RUST-252](https://linear.app/getsentry/issue/RUST-252)
References [#1201](#1201)
References [RUST-253](https://linear.app/getsentry/issue/RUST-253)
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/org-id-baggage-parsing branch from becf1b2 to 7af8474 Compare July 9, 2026 13:17
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/trace-propagation-context branch from 9fae22a to 1661031 Compare July 9, 2026 13:17
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.

Parse sentry-org_id from incoming baggage for transaction continuation

1 participant