Skip to content

feat(browser): Emit low cardinality resource span names - #23546

Merged
logaretm merged 5 commits into
developfrom
awad/resource-span-names
Aug 25, 2026
Merged

feat(browser): Emit low cardinality resource span names#23546
logaretm merged 5 commits into
developfrom
awad/resource-span-names

Conversation

@logaretm

@logaretm logaretm commented Aug 24, 2026

Copy link
Copy Markdown
Member

Names resource.* spans after the resource domain when span streaming is enabled, falling back to Resource when there's no domain.

The domain also lands on the span as url.domain in both lifecycles since it's just a missing attribute. Names in static mode are unchanged.

closes #23531

@logaretm
logaretm force-pushed the awad/resource-span-names branch from 6b1501e to 6d54bef Compare August 24, 2026 17:45
@logaretm
logaretm marked this pull request as ready for review August 24, 2026 17:50
@logaretm
logaretm requested a review from a team as a code owner August 24, 2026 17:51
@logaretm
logaretm requested review from Lms24 and msonnb and removed request for a team August 24, 2026 17:51
@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

JS-3416

@github-actions

github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.57 kB - -
@sentry/browser - with treeshaking flags 26.92 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB - -
@sentry/browser (incl. Tracing) 48.55 kB +0.1% +48 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 48.57 kB +0.11% +49 B 🔺
@sentry/browser (incl. Tracing, Profiling) 51.47 kB +0.09% +44 B 🔺
@sentry/browser (incl. Tracing, Replay) 87.94 kB +0.06% +47 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.39 kB +0.06% +43 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 92.63 kB +0.05% +43 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 105.35 kB +0.05% +49 B 🔺
@sentry/browser (incl. Feedback) 45.81 kB - -
@sentry/browser (incl. sendFeedback) 33.36 kB - -
@sentry/browser (incl. FeedbackAsync) 38.47 kB - -
@sentry/browser (incl. Metrics) 29.52 kB - -
@sentry/browser (incl. Logs) 29.8 kB - -
@sentry/browser (incl. Metrics & Logs) 30.45 kB - -
@sentry/react 30.33 kB - -
@sentry/react (incl. Tracing) 50.76 kB +0.1% +49 B 🔺
@sentry/vue 35.64 kB - -
@sentry/vue (incl. Tracing) 50.78 kB +0.1% +48 B 🔺
@sentry/svelte 28.6 kB - -
CDN Bundle 30.32 kB - -
CDN Bundle (incl. Tracing) 49.07 kB +0.1% +49 B 🔺
CDN Bundle (incl. Logs, Metrics) 32.54 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.94 kB +0.1% +48 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 72.91 kB - -
CDN Bundle (incl. Tracing, Replay) 86.51 kB +0.05% +41 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.38 kB +0.05% +42 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.27 kB +0.05% +44 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.21 kB +0.05% +44 B 🔺
CDN Bundle - uncompressed 89.94 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.74 kB +0.07% +99 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.23 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.43 kB +0.07% +99 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.18 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.02 kB +0.04% +99 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.69 kB +0.04% +99 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.72 kB +0.04% +99 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.38 kB +0.04% +99 B 🔺
@sentry/nextjs (client) 53.27 kB +0.08% +42 B 🔺
@sentry/sveltekit (client) 48.97 kB +0.11% +49 B 🔺
@sentry/core/server 65.11 kB - -
@sentry/core/browser 52.27 kB - -
@sentry/node 121.58 kB +0.02% +21 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 87.46 kB +0.03% +25 B 🔺
@sentry/aws-serverless 95.85 kB +0.03% +24 B 🔺
@sentry/cloudflare (withSentry) - minified 199.28 kB - -
@sentry/cloudflare (withSentry) 495.43 kB - -

View base workflow run

@logaretm
logaretm force-pushed the awad/resource-span-names branch from 6d54bef to cdc1a65 Compare August 24, 2026 18:26

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

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit cdc1a65. Configure here.

Comment thread packages/browser-utils/src/performance/entries.ts

@Lms24 Lms24 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.

changes LGTM! I had some comments around the migration guide, most of which touch more than your PR surface. Feel free to go with a more concise version than what I suggested. I should have worded these more carefully before merging the initial version of this guide.

Comment thread MIGRATION.md Outdated
Comment thread MIGRATION.md Outdated
Comment thread MIGRATION.md Outdated
@logaretm
logaretm force-pushed the awad/resource-span-names branch from 7ba8c5e to 74323f2 Compare August 25, 2026 14:06
logaretm and others added 5 commits August 25, 2026 10:52
Names `resource.*` spans after the resource domain when span streaming is
enabled, falling back to `Resource` when there is none. Also adds the
`url.domain` attribute to these spans.
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
@logaretm
logaretm force-pushed the awad/resource-span-names branch from 74323f2 to 73093f3 Compare August 25, 2026 14:52
@logaretm
logaretm merged commit 0059728 into develop Aug 25, 2026
203 checks passed
@logaretm
logaretm deleted the awad/resource-span-names branch August 25, 2026 15:32
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.

Emit low cardinality resource span names

2 participants