Skip to content

ref(node): Merge @sentry/node-core back into @sentry/node#22418

Draft
andreiborza wants to merge 6 commits into
developfrom
ab/merge-node-core-into-node
Draft

ref(node): Merge @sentry/node-core back into @sentry/node#22418
andreiborza wants to merge 6 commits into
developfrom
ab/merge-node-core-into-node

Conversation

@andreiborza

@andreiborza andreiborza commented Jul 21, 2026

Copy link
Copy Markdown
Member

What

Removes the @sentry/node-core package and folds its functionality back into @sentry/node.

  • Moves all node-core source into @sentry/node; the composite HTTP and node-fetch integrations become the canonical implementations.
  • Drops light mode and the optional OTel peer-dependency model. @sentry/node keeps only the OpenTelemetry dependencies it actually uses (@opentelemetry/core promoted to a direct dependency; exporter-trace-otlp-http dropped).
  • Migrates consumers (effect, aws-serverless, bun, google-cloud-serverless, nuxt) off @sentry/node-core.
  • Merges the node-core unit and integration tests that add coverage into @sentry/node and node-integration-tests; discards the redundant ones. Removes the node-core-integration-tests package and the node-core e2e apps.
  • Removes @sentry/node-core from workspaces, .craft.yml, .size-limit.js, CODEOWNERS, and CI.

The public API surface of @sentry/node is unchanged.

@sentry/effect

@sentry/effect server now runs on full @sentry/node (previously @sentry/node-core/light) and disables node's default integrations, since it provides its own tracing, logging and error capture. Its server transaction e2e tests are marked test.fixme: light mode set an AsyncLocalStorage async context strategy that matched Effect's fiber model, whereas full node installs the OpenTelemetry context strategy, so the Effect tracer's spans are no longer emitted as transactions. Adapting Effect's server tracing to the full-node context model is follow-up work.

Why

@sentry/node-core was split out to offer the Node client without bundled OpenTelemetry instrumentation and with widened OTel peer ranges. The story around node without OpenTelemetry will change in v11 and we will no longer need this distinctive SDKs. The so-called light mode will be achievable with our regular node SDK in follow up PRs.

Remove the `@sentry/node-core` package and fold its functionality back into
`@sentry/node`. Light mode and the OTel peer-dependency model are dropped;
`@sentry/node` keeps the OTel dependencies it actually uses.

- Move node-core source into `packages/node/src`; the composite HTTP/fetch
  integrations become the canonical implementations.
- Migrate consumers (effect, aws-serverless, bun, google-cloud-serverless,
  nuxt) off `@sentry/node-core`.
- Merge node-core's unique unit and integration tests into node and
  node-integration-tests; drop the redundant node-core test packages and
  e2e apps.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@andreiborza

andreiborza commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

batman begin

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 6986207. Configure here.

@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.75 kB - -
@sentry/browser - with treeshaking flags 26.18 kB - -
@sentry/browser (incl. Tracing) 46.56 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.37 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.36 kB - -
@sentry/browser (incl. Tracing, Replay) 85.84 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.46 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.55 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 103.21 kB - -
@sentry/browser (incl. Feedback) 44.93 kB - -
@sentry/browser (incl. sendFeedback) 32.55 kB - -
@sentry/browser (incl. FeedbackAsync) 37.69 kB - -
@sentry/browser (incl. Metrics) 28.83 kB - -
@sentry/browser (incl. Logs) 29.05 kB - -
@sentry/browser (incl. Metrics & Logs) 29.76 kB - -
@sentry/react 29.54 kB - -
@sentry/react (incl. Tracing) 48.84 kB - -
@sentry/vue 33.17 kB - -
@sentry/vue (incl. Tracing) 48.52 kB - -
@sentry/svelte 27.78 kB - -
CDN Bundle 30.14 kB - -
CDN Bundle (incl. Tracing) 48.53 kB - -
CDN Bundle (incl. Logs, Metrics) 31.73 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.83 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.99 kB - -
CDN Bundle (incl. Tracing, Replay) 86.05 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.85 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.12 kB - -
CDN Bundle - uncompressed 89.88 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.73 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.59 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 150.71 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.35 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.96 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 269.93 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.67 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 283.62 kB - -
@sentry/nextjs (client) 51.36 kB - -
@sentry/sveltekit (client) 46.99 kB - -
@sentry/core/server 80.26 kB - -
@sentry/core/browser 66.69 kB - -
⛔️ @sentry/node-core (max: null) 0 B removed removed
@sentry/node 125.66 kB -0.08% -96 B 🔽
@sentry/node (incl. diagnostics channel injection) 151.09 kB -0.08% -106 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 70.03 kB -0.01% -2 B 🔽
⛔️ @sentry/node/light (max: null) 0 B removed removed
@sentry/node - without tracing 74.38 kB -0.72% -535 B 🔽
@sentry/aws-serverless 83.86 kB -0.35% -293 B 🔽
@sentry/cloudflare (withSentry) - minified 197.66 kB - -
@sentry/cloudflare (withSentry) 486.61 kB - -

View base workflow run

…-into-node

# Conflicts:
#	dev-packages/node-core-integration-tests/package.json
#	packages/nuxt/package.json

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1405e18. Configure here.

Comment thread packages/node/src/integrations/http/index.ts
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