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
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 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
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