Skip to content

feat(types): Add organization ID parsing for DSNs - #1202

Merged
szokeasaurusrex merged 2 commits into
masterfrom
szokeasaurusrex/org-id-dsn-parse
Jul 28, 2026
Merged

szokeasaurusrex merged 2 commits into
masterfrom
szokeasaurusrex/org-id-dsn-parse

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jun 25, 2026 •

Copy link
Copy Markdown
Member

Expose Dsn::org_id so callers can derive the SDK organization ID needed for strict trace continuation. Parse only Sentry SaaS ingest DSN hosts, including regional hosts, and return None for self-hosted, Relay, malformed, and overflow cases.

Closes #1159
Closes RUST-233

@github-actions

github-actions Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against ec125f2

@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/org-id-dsn-parse branch from cbde4ff to 53bd774 Compare June 25, 2026 13:08
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review June 25, 2026 13:10
@szokeasaurusrex
szokeasaurusrex requested a review from lcian as a code owner June 25, 2026 13:10
@linear-code

linear-code Bot commented Jun 25, 2026

Copy link
Copy Markdown

RUST-233

@lcian
lcian removed their request for review June 25, 2026 14:02
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/org-id-dsn-parse branch from 53bd774 to d8f38f3 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-dsn-parse branch from d8f38f3 to 08f1a80 Compare July 8, 2026 13:56
@szokeasaurusrex
szokeasaurusrex changed the base branch from master to szokeasaurusrex/sampling-strat July 8, 2026 13:56
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/org-id-dsn-parse branch from 08f1a80 to cb59fdf Compare July 8, 2026 14:04
@szokeasaurusrex
szokeasaurusrex requested review from Litarnus and giortzisg and removed request for alexander-alderman-webb July 20, 2026 15:07
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/org-id-dsn-parse branch from cb59fdf to 28f70b6 Compare July 20, 2026 15:53
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/org-id-dsn-parse branch 2 times, most recently from f8efddc to b72fb2d Compare July 20, 2026 16:29

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b72fb2d. Configure here.

Comment thread sentry-types/src/dsn.rs Resolved
Comment thread sentry-types/src/dsn.rs Resolved
Comment thread sentry-types/src/dsn.rs Resolved
Base automatically changed from szokeasaurusrex/sampling-strat to master July 21, 2026 11:21
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/org-id-dsn-parse branch from b72fb2d to a53202a Compare July 24, 2026 10:11
szokeasaurusrex and others added 2 commits July 27, 2026 17:31
Expose `Dsn::org_id` so callers can derive the SDK organization ID needed for strict trace continuation. Parse only Sentry SaaS ingest DSN hosts, including regional hosts, and return `None` for self-hosted, Relay, malformed, and overflow cases.

Closes [#1159](#1159)
Closes [RUST-233](https://linear.app/getsentry/issue/RUST-233)
@szokeasaurusrex
szokeasaurusrex force-pushed the szokeasaurusrex/org-id-dsn-parse branch from a53202a to ec125f2 Compare July 27, 2026 15:39
@szokeasaurusrex
szokeasaurusrex merged commit 4147f73 into master Jul 28, 2026
28 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/org-id-dsn-parse 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.

Parse organization ID from DSN

3 participants