Skip to content

feat(core): Emit low-cardinality http.server span names when streaming - #23596

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

feat(core): Emit low-cardinality http.server span names when streaming#23596
chargome wants to merge 1 commit into
developfrom
charlygomez/js-3412-http-span-names-core

Conversation

@chargome

Copy link
Copy Markdown
Member

Names http.server spans after the request method instead of the URL path when span streaming is enabled and no route resolved. Routed requests are unchanged, static mode is byte-identical, and the scope's transaction name keeps the full path so error grouping is unaffected.
Refs #23527

With span streaming enabled, an http.server span is named after the request method rather than
the URL path when no route is resolved. Routed requests keep `${method} ${route}`, and `static`
mode is unchanged.

The scope's transaction name keeps the full path, so error grouping is unaffected. Two test suites
matched spans by name and now match on `url.path`, which is what is available at span start.

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 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

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.5 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.52 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.43 kB - -
@sentry/browser (incl. Tracing, Replay) 87.95 kB +0.07% +61 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.4 kB +0.07% +51 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 92.64 kB +0.07% +56 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 105.36 kB +0.06% +62 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.71 kB - -
@sentry/vue 35.64 kB - -
@sentry/vue (incl. Tracing) 50.73 kB - -
@sentry/svelte 28.6 kB - -
CDN Bundle 30.32 kB - -
CDN Bundle (incl. Tracing) 49.02 kB - -
CDN Bundle (incl. Logs, Metrics) 32.54 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.89 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.96 kB +0.09% +59 B 🔺
CDN Bundle (incl. Tracing, Replay) 86.53 kB +0.07% +60 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.39 kB +0.07% +61 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.28 kB +0.07% +58 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.23 kB +0.07% +57 B 🔺
CDN Bundle - uncompressed 89.94 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.64 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.23 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.33 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.3 kB +0.06% +125 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.05 kB +0.05% +125 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.72 kB +0.05% +125 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.74 kB +0.05% +125 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.41 kB +0.05% +125 B 🔺
@sentry/nextjs (client) 53.23 kB - -
@sentry/sveltekit (client) 48.92 kB - -
@sentry/core/server 65.12 kB +0.02% +10 B 🔺
@sentry/core/browser 52.27 kB - -
@sentry/node 121.6 kB +0.04% +46 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.88 kB +0.06% +52 B 🔺
@sentry/cloudflare (withSentry) - minified 199.28 kB - -
@sentry/cloudflare (withSentry) 495.43 kB - -

View base workflow run

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