Skip to content

ref(node): Remove OTel RPC metadata from http server spans - #23028

Merged
nicohrubec merged 1 commit into
developfrom
ref/remove-rpc-metadata
Aug 5, 2026
Merged

ref(node): Remove OTel RPC metadata from http server spans#23028
nicohrubec merged 1 commit into
developfrom
ref/remove-rpc-metadata

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Aug 4, 2026

Copy link
Copy Markdown
Member

Removes the OpenTelemetry RPC metadata bits from httpServerSpansIntegration in preparation for dropping the @opentelemetry/core dependency. The path was dead code since nothing in the SDK ever set the route field it read, and route naming already happens via setHttpServerSpanRouteAttribute.

Fixes #22280

The http server spans integration created OTel `RPCMetadata` and published it
into the OTel context so a downstream instrumentation could set `.route`, which
was then read back to set `http.route`. Nothing in the SDK ever writes that
field (no `getRPCMetadata` caller), so the path was dead — route naming is done
directly via `setHttpServerSpanRouteAttribute`. Removes the RPC metadata bits
and the last `@opentelemetry/core` import from `@sentry/node` src.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.83 kB - -
@sentry/browser - with treeshaking flags 28.03 kB - -
@sentry/browser (incl. Tracing) 47.25 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.27 kB - -
@sentry/browser (incl. Tracing, Profiling) 52 kB - -
@sentry/browser (incl. Tracing, Replay) 86.59 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.01 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.28 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.95 kB - -
@sentry/browser (incl. Feedback) 47.13 kB - -
@sentry/browser (incl. sendFeedback) 34.67 kB - -
@sentry/browser (incl. FeedbackAsync) 39.78 kB - -
@sentry/browser (incl. Metrics) 30.91 kB - -
@sentry/browser (incl. Logs) 31.14 kB - -
@sentry/browser (incl. Metrics & Logs) 31.81 kB - -
@sentry/react 31.63 kB - -
@sentry/react (incl. Tracing) 49.51 kB - -
@sentry/vue 34.92 kB - -
@sentry/vue (incl. Tracing) 49.24 kB - -
@sentry/svelte 29.86 kB - -
CDN Bundle 31.87 kB - -
CDN Bundle (incl. Tracing) 47.54 kB - -
CDN Bundle (incl. Logs, Metrics) 33.41 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.95 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.75 kB - -
CDN Bundle (incl. Tracing, Replay) 85.18 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.5 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.31 kB - -
CDN Bundle - uncompressed 94.62 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.12 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.24 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.1 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 223.94 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.38 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.34 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.08 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.04 kB - -
@sentry/nextjs (client) 52.08 kB - -
@sentry/sveltekit (client) 47.71 kB - -
@sentry/core/server 65.52 kB - -
@sentry/core/browser 51.88 kB - -
@sentry/node 120.07 kB -0.14% -166 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.69 kB -0.01% -1 B 🔽
@sentry/aws-serverless 92.19 kB -0.18% -165 B 🔽
@sentry/cloudflare (withSentry) - minified 218.65 kB - -
@sentry/cloudflare (withSentry) 538.85 kB - -

View base workflow run

@nicohrubec
nicohrubec marked this pull request as ready for review August 4, 2026 19:20
@nicohrubec
nicohrubec requested a review from a team as a code owner August 4, 2026 19:20
@nicohrubec
nicohrubec requested review from andreiborza, msonnb and stephanie-anderson and removed request for a team and stephanie-anderson August 4, 2026 19:20
@nicohrubec
nicohrubec requested a review from chargome August 5, 2026 07:51

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

Image

@nicohrubec
nicohrubec merged commit 4cc5bce into develop Aug 5, 2026
346 of 350 checks passed
@nicohrubec
nicohrubec deleted the ref/remove-rpc-metadata branch August 5, 2026 07:55
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.

Remove @opentelemetry/core RPC metadata APIs

2 participants