Skip to content

feat(core): Add orgId option to init and DSC (sentry-org_id in baggage) #16305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 16, 2025

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented May 15, 2025

Adds the organization ID to the DSC (dynamic sampling context). This will add the org ID as sentry-org_id to the baggage.

This org ID is parsed from the DSN. With the orgId option it's possible to overwrite the automatically parsed organization ID.

closes #16290

@s1gr1d s1gr1d requested review from mydea, Lms24 and andreiborza May 15, 2025 09:29
Copy link
Contributor

github-actions bot commented May 15, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.04 kB +0.25% +59 B 🔺
@sentry/browser - with treeshaking flags 23.7 kB +0.27% +63 B 🔺
@sentry/browser (incl. Tracing) 38.46 kB +0.18% +68 B 🔺
@sentry/browser (incl. Tracing, Replay) 76.58 kB +0.1% +69 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.61 kB +0.08% +55 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 81.35 kB +0.08% +63 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 93.46 kB +0.09% +79 B 🔺
@sentry/browser (incl. Feedback) 40.83 kB +0.14% +55 B 🔺
@sentry/browser (incl. sendFeedback) 28.79 kB +0.22% +63 B 🔺
@sentry/browser (incl. FeedbackAsync) 33.66 kB +0.17% +55 B 🔺
@sentry/react 25.86 kB +0.25% +64 B 🔺
@sentry/react (incl. Tracing) 40.48 kB +0.2% +78 B 🔺
@sentry/vue 28.44 kB +0.23% +63 B 🔺
@sentry/vue (incl. Tracing) 40.28 kB +0.16% +63 B 🔺
@sentry/svelte 24.07 kB +0.21% +50 B 🔺
CDN Bundle 25.25 kB +0.24% +58 B 🔺
CDN Bundle (incl. Tracing) 38.54 kB +0.18% +67 B 🔺
CDN Bundle (incl. Tracing, Replay) 74.32 kB +0.08% +54 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 79.77 kB +0.08% +63 B 🔺
CDN Bundle - uncompressed 73.68 kB +0.18% +126 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 114.08 kB +0.12% +126 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 228.05 kB +0.06% +126 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 240.87 kB +0.06% +126 B 🔺
@sentry/nextjs (client) 42.08 kB +0.1% +40 B 🔺
@sentry/sveltekit (client) 38.95 kB +0.17% +63 B 🔺
@sentry/node 158.08 kB +0.06% +79 B 🔺
@sentry/node - without tracing 97.99 kB +0.1% +95 B 🔺
@sentry/aws-serverless 123.33 kB +0.08% +92 B 🔺

View base workflow run

Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

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

just small notes, overall looking great 👍

@s1gr1d s1gr1d changed the title feat(core): Add orgId option to init and DSC feat(core): Add orgId option to init and DSC (baggage) May 15, 2025
@s1gr1d s1gr1d changed the title feat(core): Add orgId option to init and DSC (baggage) feat(core): Add orgId option to init and DSC (sentry-org_id in baggage) May 15, 2025
@s1gr1d s1gr1d merged commit c3a9682 into develop May 16, 2025
158 checks passed
@s1gr1d s1gr1d deleted the sig/orgId-baggage branch May 16, 2025 08:23
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.

Send sentry-org_id in baggage
3 participants