Skip to content

ref: Drop the @opentelemetry/core dependency - #23044

Merged
nicohrubec merged 2 commits into
developfrom
ref/remove-otel-core-dep
Aug 5, 2026
Merged

ref: Drop the @opentelemetry/core dependency#23044
nicohrubec merged 2 commits into
developfrom
ref/remove-otel-core-dep

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Aug 5, 2026

Copy link
Copy Markdown
Member

All direct usage of @opentelemetry/core was removed across previous PRs (resource/SDK_INFO, RPC metadata, and the suppress helpers), so it is no longer imported anywhere in src. This drops the direct declaration from @sentry/node and @sentry/opentelemetry, leaving @opentelemetry/api as the only OpenTelemetry package the SDK depends on.

Note: The entry still remains in the lock file, because we have a node-integration test that depends on @opentelemetry/instrumentation-http which depends on@opentelemetry/core.

Fixes #21674
Fixes #21972

All direct usage of `@opentelemetry/core` has been removed (resource/`SDK_INFO`,
RPC metadata, and the suppress helpers were all removed or vendored), so the
dependency is no longer imported anywhere in `src`. This drops the direct
declaration from `@sentry/node` and `@sentry/opentelemetry` (deps, peerDeps and
devDeps) and the README. It remains available transitively via
`@opentelemetry/instrumentation-http`.

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

github-actions Bot commented Aug 5, 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.59 kB - -
@sentry/core/browser 51.88 kB - -
@sentry/node 120.07 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.69 kB - -
@sentry/aws-serverless 92.19 kB - -
@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 5, 2026 08:15
@nicohrubec
nicohrubec requested review from a team as code owners August 5, 2026 08:15
@nicohrubec
nicohrubec requested review from andreiborza, chargome, isaacs and mydea and removed request for a team, isaacs and mydea August 5, 2026 08:15
@nicohrubec

Copy link
Copy Markdown
Member Author

bye

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

@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 enabled auto-merge (squash) August 5, 2026 09:27
@nicohrubec
nicohrubec merged commit 9863add into develop Aug 5, 2026
267 checks passed
@nicohrubec
nicohrubec deleted the ref/remove-otel-core-dep branch August 5, 2026 09:35
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 peer dependency from @sentry/opentelemetry Remove @opentelemetry/core dependency

3 participants