Skip to content

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

Merged
Lms24 merged 5 commits into
developfrom
lms/ref-deps-sentry-conventions-in-core
Jul 2, 2026
Merged

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

Conversation

@Lms24

@Lms24Lms24 commented Jun 30, 2026

Copy link
Copy Markdown
Member

Adds the @sentry/conventions package to core and bumps it everywhere to the latest 0.15.1 version. 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 ownersJune 30, 2026 08:38
@Lms24
Lms24 requested review from JPeer264, andreiborza, chargome, mydea and nicohrubec and removed request for a teamJune 30, 2026 08:38
@Lms24Lms24 self-assigned this Jun 30, 2026

@andreiborzaandreiborza 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
MemberAuthor

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-actionsBot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser27.59 kB--
@sentry/browser - with treeshaking flags26.03 kB--
@sentry/browser (incl. Tracing)46.04 kB-0.03%-10 B 🔽
@sentry/browser (incl. Tracing + Span Streaming)47.77 kB-0.03%-14 B 🔽
@sentry/browser (incl. Tracing, Profiling)50.81 kB-0.02%-6 B 🔽
@sentry/browser (incl. Tracing, Replay)85.27 kB-0.02%-16 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags74.88 kB-0.02%-9 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas)89.95 kB-0.02%-17 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback)102.62 kB-0.02%-20 B 🔽
@sentry/browser (incl. Feedback)44.76 kB-0.01%-1 B 🔽
@sentry/browser (incl. sendFeedback)32.38 kB-0.04%-10 B 🔽
@sentry/browser (incl. FeedbackAsync)37.51 kB-0.03%-11 B 🔽
@sentry/browser (incl. Metrics)28.67 kB+0.01%+2 B 🔺
@sentry/browser (incl. Logs)28.91 kB+0.02%+3 B 🔺
@sentry/browser (incl. Metrics & Logs)29.59 kB-0.02%-3 B 🔽
@sentry/react29.38 kB--
@sentry/react (incl. Tracing)48.34 kB-0.01%-4 B 🔽
@sentry/vue32.82 kB--
@sentry/vue (incl. Tracing)47.9 kB-0.02%-7 B 🔽
@sentry/svelte27.61 kB--
CDN Bundle30 kB--
CDN Bundle (incl. Tracing)48.01 kB+0.06%+24 B 🔺
CDN Bundle (incl. Logs, Metrics)31.57 kB--
CDN Bundle (incl. Tracing, Logs, Metrics)49.33 kB+0.04%+17 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics)70.77 kB--
CDN Bundle (incl. Tracing, Replay)85.48 kB-0.01%-5 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)86.76 kB+0.01%+4 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback)91.3 kB+0.01%+3 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)92.54 kB+0.01%+8 B 🔺
CDN Bundle - uncompressed89.35 kB--
CDN Bundle (incl. Tracing) - uncompressed145.27 kB-0.01%-10 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed94.05 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed149.24 kB-0.01%-10 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed218.59 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed264.28 kB-0.01%-10 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed268.24 kB-0.01%-10 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed277.98 kB-0.01%-10 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed281.93 kB-0.01%-10 B 🔽
@sentry/nextjs (client)50.73 kB-0.01%-5 B 🔽
@sentry/sveltekit (client)46.43 kB-0.03%-10 B 🔽
@sentry/core/server77.73 kB-0.03%-18 B 🔽
@sentry/core/browser64.06 kB+0.01%+2 B 🔺
@sentry/node-core62.38 kB+0.01%+3 B 🔺
@sentry/node121.23 kB-0.02%-16 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection)69.95 kB--
@sentry/node/light50.46 kB+0.01%+3 B 🔺
@sentry/node - without tracing72.69 kB+0.02%+12 B 🔺
@sentry/aws-serverless83.57 kB+0.07%+51 B 🔺
@sentry/cloudflare (withSentry) - minified180.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
MemberAuthor

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!

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.

But this comment is still valid. I'll add a comment here

@Lms24

Lms24 commented Jul 1, 2026

Copy link
Copy Markdown
MemberAuthor

Before we can merge this, we need to merge getsentry/sentry-conventions#459 and release conventions again, then bump to that version in the SDK.

@Lms24
Lms24force-pushed the lms/ref-deps-sentry-conventions-in-core branch 3 times, most recently from 3fb0522 to cee1162CompareJuly 1, 2026 15:26
@Lms24
Lms24force-pushed the lms/ref-deps-sentry-conventions-in-core branch from cee1162 to af6a221CompareJuly 1, 2026 17:14
@Lms24
Lms24 merged commit ba682c1 into developJul 2, 2026
290 checks passed
@Lms24
Lms24 deleted the lms/ref-deps-sentry-conventions-in-core branch July 2, 2026 08:04
Sign up for freeto 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.

5 participants

@Lms24@JPeer264@chargome@nicohrubec@andreiborza