Skip to content

feat(core): Add low cardinality span name fallbacks - #23516

Merged
Lms24 merged 2 commits into
developfrom
lms/feat-core-span-name-fallbacks
Aug 24, 2026
Merged

feat(core): Add low cardinality span name fallbacks#23516
Lms24 merged 2 commits into
developfrom
lms/feat-core-span-name-fallbacks

Conversation

@Lms24

@Lms24 Lms24 commented Aug 24, 2026

Copy link
Copy Markdown
Member

Adds and exports fallback span name constants from @sentry/core which we can use to migrate span names to be low-cardinality when span streaming is enabled.

Doing this upfront to avoid merge/rebase conflicts when we split up the name migration. Thanks @nicohrubec for the suggestion!

All fallbacks taken from: https://getsentry.github.io/sentry-conventions/attributes/

ref #22350

@Lms24 Lms24 self-assigned this Aug 24, 2026

@nicohrubec nicohrubec 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!

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.3 kB - -
@sentry/browser - with treeshaking flags 28.47 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.81 kB - -
@sentry/browser (incl. Tracing) 48.62 kB +0.01% +1 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 48.63 kB -0.02% -5 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.5 kB -0.03% -12 B 🔽
@sentry/browser (incl. Tracing, Replay) 88.02 kB -0.01% -4 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.42 kB -0.01% -5 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 92.73 kB -0.01% -9 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 105.43 kB -0.02% -18 B 🔽
@sentry/browser (incl. Feedback) 47.65 kB - -
@sentry/browser (incl. sendFeedback) 35.13 kB - -
@sentry/browser (incl. FeedbackAsync) 40.28 kB - -
@sentry/browser (incl. Metrics) 31.24 kB - -
@sentry/browser (incl. Logs) 31.52 kB - -
@sentry/browser (incl. Metrics & Logs) 32.15 kB - -
@sentry/react 32.09 kB - -
@sentry/react (incl. Tracing) 50.82 kB +0.01% +1 B 🔺
@sentry/vue 35.34 kB - -
@sentry/vue (incl. Tracing) 50.6 kB -0.02% -9 B 🔽
@sentry/svelte 30.33 kB - -
CDN Bundle 31.61 kB - -
CDN Bundle (incl. Tracing) 48.96 kB -0.01% -1 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.8 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.87 kB +0.01% +1 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 74.31 kB - -
CDN Bundle (incl. Tracing, Replay) 86.53 kB +0.01% +2 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.37 kB +0.01% +2 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.23 kB -0.01% -1 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.18 kB +0.01% +1 B 🔺
CDN Bundle - uncompressed 93.84 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.83 kB +0.01% +6 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.14 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.52 kB +0.01% +6 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.08 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.09 kB +0.01% +6 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.77 kB +0.01% +6 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.79 kB +0.01% +6 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.45 kB +0.01% +6 B 🔺
@sentry/nextjs (client) 53.35 kB -0.03% -16 B 🔽
@sentry/sveltekit (client) 49.04 kB +0.01% +3 B 🔺
@sentry/core/server 65.83 kB +0.42% +271 B 🔺
@sentry/core/browser 52.03 kB +0.49% +250 B 🔺
@sentry/node 117.47 kB +0.02% +22 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.02 kB +0.03% +24 B 🔺
@sentry/aws-serverless 91.44 kB +0.03% +20 B 🔺
@sentry/cloudflare (withSentry) - minified 194.61 kB - -
@sentry/cloudflare (withSentry) 481.16 kB - -

View base workflow run

@Lms24
Lms24 enabled auto-merge (squash) August 24, 2026 12:16
@Lms24
Lms24 merged commit 99798cf into develop Aug 24, 2026
271 of 273 checks passed
@Lms24
Lms24 deleted the lms/feat-core-span-name-fallbacks branch August 24, 2026 12:32
JPeer264 pushed a commit that referenced this pull request Aug 25, 2026
Adds and exports fallback span name constants from `@sentry/core` which
we can use to migrate span names to be low-cardinality when span
streaming is enabled.

Doing this upfront to avoid merge/rebase conflicts when we split up the
name migration. Thanks @nicohrubec for the suggestion!

All fallbacks taken from:
https://getsentry.github.io/sentry-conventions/attributes/

ref #22350
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.

2 participants