Skip to content

fix: Use auto.http.http_server origin for all node:http server spans - #25604

Merged
mydea merged 1 commit into
developfrom
ref/unify-http-server-span-origin
Oct 21, 2026
Merged

mydea merged 1 commit into
developfrom
ref/unify-http-server-span-origin

Conversation

@mydea

@mydea mydea commented Oct 21, 2026

Copy link
Copy Markdown
Member

Incoming-request spans for node:http servers had two origins, depending only on the runtime:

  • auto.http.http_server on Node.js, from httpServerSpansIntegration.
  • auto.http.server on Bun (bunHttpServerIntegration, e.g. Next.js under bun --bun) and Deno (denoHttpIntegration), from the shared getHttpServerSubscriptions() helper in core. Node calls the same helper with spans: false, so it never emitted this origin.

The two never appeared together, so the origin was only ever a proxy for the runtime, which sdk.name already gives. Splitting them meant every query, alert or ignoreSpans rule targeting incoming HTTP server spans had to list both. This PR moves the core helper to auto.http.http_server, the origin with by far the larger install base.

Impact

  • Node.js: none. Origins and behavior are unchanged.
  • Bun and Deno node:http server spans now carry auto.http.http_server. User ignoreSpans / beforeSendSpan rules, dashboards or alerts that match auto.http.server need updating, so this is marked breaking. Native server spans are unaffected: Bun.serve stays auto.http.bun.serve and Deno.serve stays auto.http.deno.
  • denoHttpIntegration gates its ignoreStatusCodes handling on its own origin. It now gates on auto.http.http_server, which still keeps it apart from denoServeIntegration (auto.http.deno).
  • Astro drops http.server spans with origin auto.http.http_server (prerendered pages). That rule only runs in @sentry/astro's Node SDK, where these spans already had this origin, so nothing new is matched.
  • auto.http.server.angular (Angular SSR) is a different origin and is not touched.

🤖 Generated with Claude Code

The shared core server instrumentation, used by `@sentry/bun` and
`@sentry/deno` for `node:http` servers, tagged its spans
`auto.http.server`, while Node's `httpServerSpansIntegration` uses
`auto.http.http_server` for the same kind of span. Use one origin for
both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: bd3f3f9 (PR test merge using develop at a01cfca)

Against: a01cfca (develop) · base run #62876

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 29.91 kB - -
@sentry/browser - with treeshaking flags 28.04 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.95 kB - -
@sentry/browser (incl. Tracing) 52.1 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.1 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.04 kB - -
@sentry/browser (incl. Tracing, Replay) 91.85 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.72 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 96.58 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 109.52 kB - -
@sentry/browser (incl. Feedback) 47.42 kB - -
@sentry/browser (incl. sendFeedback) 34.97 kB - -
@sentry/browser (incl. FeedbackAsync) 40.07 kB - -
@sentry/browser (incl. Metrics) 30.93 kB - -
@sentry/browser (incl. Logs) 31.21 kB - -
@sentry/browser (incl. Metrics & Logs) 31.84 kB - -
@sentry/react 31.73 kB - -
@sentry/react (incl. Tracing) 54.41 kB - -
@sentry/vue 38.06 kB - -
@sentry/vue (incl. Tracing) 55.03 kB - -
@sentry/svelte 29.93 kB - -
@sentry/remix (Remix 3 client bundle) 57.11 kB - -
CDN Bundle 31.67 kB - -
CDN Bundle (incl. Tracing) 52.61 kB - -
CDN Bundle (incl. Logs, Metrics) 33.87 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 54.55 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.79 kB - -
CDN Bundle (incl. Tracing, Replay) 90.28 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.21 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.42 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.37 kB - -
CDN Bundle - uncompressed 93.29 kB - -
CDN Bundle (incl. Tracing) - uncompressed 156.14 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.83 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 162.1 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.87 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 276.31 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 282.25 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 290.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 295.94 kB - -
@sentry/nextjs (client) 57.3 kB - -
@sentry/sveltekit (client) 52.48 kB - -
@sentry/core/server 41.8 kB - -
@sentry/core/browser 13.81 kB - -
@sentry/node 155.31 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 84.06 kB - -
@sentry/node - without tracing 96.95 kB - -
@sentry/node - without channel injection 133.29 kB -0.01% -1 B 🔽
@sentry/aws-serverless 105.12 kB -0.01% -2 B 🔽
@sentry/cloudflare (withSentry) - minified 211.11 kB - -
@sentry/cloudflare (withSentry) 523.83 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 230.74 kB - -

View base workflow run

@mydea
mydea marked this pull request as ready for review October 21, 2026 12:01
@mydea
mydea requested a review from a team as a code owner October 21, 2026 12:01
@mydea
mydea requested review from JPeer264 and isaacs and removed request for a team October 21, 2026 12:01
@mydea mydea changed the title ref!: Use auto.http.http_server origin for all node:http server spans ref: Use auto.http.http_server origin for all node:http server spans Oct 21, 2026

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

This looks good to me, and does not appear to conflict with the changes in this stack as I initially suspected and mentioned in Slack. (This is about origin; I intentionally left those untouched.) It is similar in spirit, though :)

I'd recommend making this a fix rather than ref! commit title, though. It does actually make a change that could be visible externally, not just a refactor.

I also agree with @Lms24 that it's safe to do mid-major. We've updated origins before, and investigating our data has never shown anyone doing anything load bearing with it.

@mydea mydea changed the title ref: Use auto.http.http_server origin for all node:http server spans fix: Use auto.http.http_server origin for all node:http server spans Oct 21, 2026
@mydea
mydea merged commit d4a4e81 into develop Oct 21, 2026
1456 of 1486 checks passed
@mydea
mydea deleted the ref/unify-http-server-span-origin branch October 21, 2026 15:18
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