Skip to content

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

Open
logaretm wants to merge 2 commits into
developfrom
awad/resource-span-names
Open

feat(browser): Emit low cardinality resource span names#23546
logaretm wants to merge 2 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.4 kB +0.11% +52 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 48.41 kB +0.11% +51 B 🔺
@sentry/browser (incl. Tracing, Profiling) 51.3 kB +0.09% +45 B 🔺
@sentry/browser (incl. Tracing, Replay) 87.79 kB +0.06% +48 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.25 kB +0.06% +43 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 92.49 kB +0.05% +44 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 105.18 kB +0.05% +48 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.58 kB +0.11% +53 B 🔺
@sentry/vue 35.4 kB - -
@sentry/vue (incl. Tracing) 50.37 kB +0.1% +49 B 🔺
@sentry/svelte 28.6 kB - -
CDN Bundle 30.32 kB - -
CDN Bundle (incl. Tracing) 48.92 kB +0.1% +48 B 🔺
CDN Bundle (incl. Logs, Metrics) 32.54 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.79 kB +0.1% +47 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 72.91 kB - -
CDN Bundle (incl. Tracing, Replay) 86.38 kB +0.05% +43 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.2 kB +0.05% +43 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.11 kB +0.05% +42 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.04 kB +0.05% +42 B 🔺
CDN Bundle - uncompressed 89.94 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.22 kB +0.07% +99 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.23 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 151.91 kB +0.07% +99 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.18 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.5 kB +0.04% +99 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.17 kB +0.04% +99 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.19 kB +0.04% +99 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 284.86 kB +0.04% +99 B 🔺
@sentry/nextjs (client) 53.1 kB +0.08% +42 B 🔺
@sentry/sveltekit (client) 48.81 kB +0.11% +52 B 🔺
@sentry/core/server 64.95 kB - -
@sentry/core/browser 52.11 kB - -
@sentry/node 117.49 kB +0.03% +24 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB - -
@sentry/node - without tracing 82.03 kB +0.03% +24 B 🔺
@sentry/aws-serverless 91.46 kB +0.03% +21 B 🔺
@sentry/cloudflare (withSentry) - minified 194.68 kB - -
@sentry/cloudflare (withSentry) 481.3 kB - -

View base workflow run

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

1 participant