Skip to content

feat: Emit low-cardinality http.server span names in framework SDKs - #23597

Draft
chargome wants to merge 1 commit into
charlygomez/js-3412-http-span-names-corefrom
charlygomez/js-3412-http-span-names-frameworks
Draft

feat: Emit low-cardinality http.server span names in framework SDKs#23597
chargome wants to merge 1 commit into
charlygomez/js-3412-http-span-names-corefrom
charlygomez/js-3412-http-span-names-frameworks

Conversation

@chargome

Copy link
Copy Markdown
Member

Applies the same span-streaming gate across the runtime and framework SDKs so no integration keeps a raw URL in an http.server span name; routed requests are unchanged. Stacked on #23596.
Worth a closer look: remix reads its own span name back, sveltekit also renames SvelteKit's native root span, and nextjs renames in a spanStart hook because Next.js creates that span. Refs #23527

Applies the same span-streaming gate to the runtime and framework SDKs so no integration keeps a raw
URL in an http.server span name. Requests that resolve to a route are unchanged.

Three sites differ from the rest and are worth a closer look: remix reads its own span name back,
sveltekit also renames SvelteKit's native root span, and nextjs renames in a `spanStart` hook because
Next.js — not the SDK — creates that span.

Refs #23527
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome chargome self-assigned this Aug 25, 2026
@linear-code

linear-code Bot commented Aug 25, 2026

Copy link
Copy Markdown

JS-3412

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.57 kB added added
@sentry/browser - with treeshaking flags 26.92 kB added added
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB added added
@sentry/browser (incl. Tracing) 48.5 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.52 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.43 kB added added
@sentry/browser (incl. Tracing, Replay) 87.89 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.35 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 92.59 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 105.3 kB added added
@sentry/browser (incl. Feedback) 45.81 kB added added
@sentry/browser (incl. sendFeedback) 33.36 kB added added
@sentry/browser (incl. FeedbackAsync) 38.47 kB added added
@sentry/browser (incl. Metrics) 29.52 kB added added
@sentry/browser (incl. Logs) 29.8 kB added added
@sentry/browser (incl. Metrics & Logs) 30.45 kB added added
@sentry/react 30.33 kB added added
@sentry/react (incl. Tracing) 50.71 kB added added
@sentry/vue 35.64 kB added added
@sentry/vue (incl. Tracing) 50.73 kB added added
@sentry/svelte 28.6 kB added added
CDN Bundle 30.32 kB added added
CDN Bundle (incl. Tracing) 49.02 kB added added
CDN Bundle (incl. Logs, Metrics) 32.54 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 50.89 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 72.91 kB added added
CDN Bundle (incl. Tracing, Replay) 86.47 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.33 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.22 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.17 kB added added
CDN Bundle - uncompressed 89.94 kB added added
CDN Bundle (incl. Tracing) - uncompressed 146.64 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.23 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.33 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.18 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.92 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.6 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.62 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.28 kB added added
@sentry/nextjs (client) 53.23 kB added added
@sentry/sveltekit (client) 48.92 kB added added
@sentry/core/server 65.12 kB added added
@sentry/core/browser 52.27 kB added added
@sentry/node 121.51 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.18 kB added added
@sentry/node - without tracing 87.46 kB added added
@sentry/aws-serverless 95.88 kB added added
@sentry/cloudflare (withSentry) - minified 196.97 kB added added
@sentry/cloudflare (withSentry) 487.76 kB added added

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.

1 participant