feat(node)!: Remove init, preload entry points and preloadOpenTelemetry - #23074
Open
andreiborza wants to merge 1 commit into
Open
feat(node)!: Remove init, preload entry points and preloadOpenTelemetry#23074andreiborza wants to merge 1 commit into
init, preload entry points and preloadOpenTelemetry#23074andreiborza wants to merge 1 commit into
Conversation
Member
Author
|
buglitzer moch |
Contributor
size-limit report 📦
|
There was a problem hiding this comment.
✅ 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 56dbdfd. Configure here.
andreiborza
marked this pull request as ready for review
August 5, 2026 18:06
andreiborza
requested review from
JPeer264,
Lms24,
chargome,
mydea and
nicohrubec
and removed request for
a team and
mydea
August 5, 2026 18:06
…lemetry` Removes the `@sentry/node/init` and `@sentry/node/preload` no-code entry points and the `preloadOpenTelemetry()` function. All instrumentation is channel-based via orchestrion and set up when the instrumented module loads, so preloading no longer does anything. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
andreiborza
force-pushed
the
ab/clean-up-node-submodule-exports
branch
from
August 5, 2026 18:11
56dbdfd to
58d24fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Remove the following from
@sentry/node, part of the v11 major:@sentry/node/initand@sentry/node/preloadno-code entry points.preloadOpenTelemetry()function.node-express-{cjs,esm}-preloade2e apps and theno-codeintegration suite that tested them.Also repurposes the
express/late-initintegration suite (renamed toexpress/ignore-layers-type) into a focusedignoreLayersTypetest.Why
All instrumentation is channel-based via orchestrion and is set up when the instrumented module loads, so preloading no longer does anything.
preloadOpenTelemetry()could only ever preload the Sentry HTTP breadcrumb/propagation instrument, which normalinit()already sets up, so it had quietly stopped doing its advertised job.The issue proposed deprecating
init/preload, but sincedevelopis the v11 line a deprecation cycle buys nothing, so these are removed outright.@sentry/node/importstays as the one supported hook.@sentry/node/loaderand@sentry/node/auto-diagnostic-channelsfrom the issue are already moot:/loaderwas removed with the iitm cleanup, and/importalready is the orchestrion diagnostics-channel hook that/auto-diagnostic-channelswas meant to become.The
late-initsuite existed to guard lazy Express option loading via a laterinit(), a mechanism that now lives only in@sentry/core'spatchLayer(Deno-only, unit-tested) and is unreachable in node under orchestrion. It was also the only node e2e test exercisingignoreLayersType, so it is kept and refocused on that option rather than deleted.Closes: #21483