Skip to content

ref(core): Add @sentry/conventions to @sentry/core and align versions#21855

Open
Lms24 wants to merge 5 commits into
developfrom
lms/ref-deps-sentry-conventions-in-core
Open

ref(core): Add @sentry/conventions to @sentry/core and align versions#21855
Lms24 wants to merge 5 commits into
developfrom
lms/ref-deps-sentry-conventions-in-core

Conversation

@Lms24

@Lms24 Lms24 commented Jun 30, 2026

Copy link
Copy Markdown
Member

Adds the @sentry/conventions package to core and bumps it everywhere to the latest 0.13.0 version (minimum, still caret-ranged) for consistency. To make use of the new dependency, this also replaces the sentry.span.source constant with the new convention-based export.

We should replace our usage of our own semanticAttributes.ts export over time but I'd prefer doing this in follow-up PRs, case-by-case since this will change a lot of files for each attribute.

ref #18895

@Lms24 Lms24 requested review from a team as code owners June 30, 2026 08:38
@Lms24 Lms24 requested review from JPeer264, andreiborza, chargome, mydea and nicohrubec and removed request for a team June 30, 2026 08:38
@Lms24 Lms24 self-assigned this Jun 30, 2026

@andreiborza andreiborza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for doing this!

@@ -138,7 +139,7 @@ export function getDynamicSamplingContextFromSpan(span: Span): Readonly<Partial<

// We don't want to have a transaction name in the DSC if the source is "url" because URLs might contain PII
// TODO(v11): Only read `SEMANTIC_ATTRIBUTE_SENTRY_SOURCE` again, once we renamed it to `sentry.span.source`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

q: Do we still need this?

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.

This sounded really confusing, thanks for calling it out! I reworded it. We'll need to remove SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, so the comment should reflect it

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.62 kB - -
@sentry/browser - with treeshaking flags 26.05 kB - -
@sentry/browser (incl. Tracing) 46.06 kB -0.03% -11 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 47.8 kB -0.04% -16 B 🔽
@sentry/browser (incl. Tracing, Profiling) 50.83 kB -0.01% -5 B 🔽
@sentry/browser (incl. Tracing, Replay) 85.29 kB -0.02% -16 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.91 kB -0.01% -5 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 89.98 kB -0.02% -15 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 102.64 kB -0.02% -20 B 🔽
@sentry/browser (incl. Feedback) 44.79 kB -0.01% -1 B 🔽
@sentry/browser (incl. sendFeedback) 32.41 kB -0.03% -9 B 🔽
@sentry/browser (incl. FeedbackAsync) 37.54 kB -0.03% -10 B 🔽
@sentry/browser (incl. Metrics) 28.68 kB +0.01% +1 B 🔺
@sentry/browser (incl. Logs) 28.93 kB +0.02% +3 B 🔺
@sentry/browser (incl. Metrics & Logs) 29.61 kB - -
@sentry/react 29.41 kB - -
@sentry/react (incl. Tracing) 48.37 kB -0.01% -4 B 🔽
@sentry/vue 32.85 kB - -
@sentry/vue (incl. Tracing) 47.93 kB -0.02% -7 B 🔽
@sentry/svelte 27.64 kB - -
CDN Bundle 30.02 kB - -
CDN Bundle (incl. Tracing) 48.04 kB +0.05% +23 B 🔺
CDN Bundle (incl. Logs, Metrics) 31.58 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.36 kB +0.03% +13 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 70.79 kB - -
CDN Bundle (incl. Tracing, Replay) 85.5 kB -0.02% -9 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.79 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.32 kB +0.01% +4 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.57 kB +0.01% +9 B 🔺
CDN Bundle - uncompressed 89.42 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.34 kB -0.01% -10 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.12 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.31 kB -0.01% -10 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 218.66 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.35 kB -0.01% -10 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.31 kB -0.01% -10 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.05 kB -0.01% -10 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282 kB -0.01% -10 B 🔽
@sentry/nextjs (client) 50.76 kB -0.02% -6 B 🔽
@sentry/sveltekit (client) 46.45 kB -0.03% -10 B 🔽
@sentry/core/server 77.73 kB -0.03% -18 B 🔽
@sentry/core/browser 64.06 kB +0.01% +2 B 🔺
@sentry/node-core 61.47 kB +0.01% +4 B 🔺
@sentry/node 122.86 kB +0.03% +36 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 69.95 kB - -
@sentry/node/light 50.45 kB +0.01% +2 B 🔺
@sentry/node - without tracing 73.22 kB +0.03% +17 B 🔺
@sentry/aws-serverless 84.13 kB +0.05% +39 B 🔺
@sentry/cloudflare (withSentry) - minified 180.62 kB -0.01% -6 B 🔽
@sentry/cloudflare (withSentry) 446.83 kB -0.03% -103 B 🔽

View base workflow run

preset: 'es2015',
},

hoistTransitiveImports: false,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: Might be worth a comment

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.

argh no, this shouldn't be part of the PR. My mistake. Thanks for flagging!

@Lms24 Lms24 force-pushed the lms/ref-deps-sentry-conventions-in-core branch from 3f1b5ba to b6640bc Compare June 30, 2026 14:07
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.

4 participants