Commit 288bbb6
## What
Remove the following from `@sentry/node`, part of the v11 major:
* The `@sentry/node/init` and `@sentry/node/preload` no-code entry
points.
* The `preloadOpenTelemetry()` function.
* The `node-express-{cjs,esm}-preload` e2e apps and the `no-code`
integration suite that tested them.
Also repurposes the `express/late-init` integration suite (renamed to
`express/ignore-layers-type`) into a focused `ignoreLayersType` test.
## 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 normal `init()` already sets
up, so it had quietly stopped doing its advertised job.
The issue proposed deprecating `init`/`preload`, but since `develop` is
the v11 line a deprecation cycle buys nothing, so these are removed
outright. `@sentry/node/import` stays as the one supported hook.
`@sentry/node/loader` and `@sentry/node/auto-diagnostic-channels` from
the issue are already moot: `/loader` was removed with the iitm cleanup,
and `/import` already is the orchestrion diagnostics-channel hook that
`/auto-diagnostic-channels` was meant to become.
The `late-init` suite existed to guard lazy Express option loading via a
later `init()`, a mechanism that now lives only in `@sentry/core`'s
`patchLayer` (Deno-only, unit-tested) and is unreachable in node under
orchestrion. It was also the only node e2e test exercising
`ignoreLayersType`, so it is kept and refocused on that option rather
than deleted.
Closes: #21483
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 8c2a490 commit 288bbb6
28 files changed
Lines changed: 22 additions & 715 deletions
File tree
- dev-packages
- e2e-tests/test-applications
- node-exports-test-app/scripts
- node-express-cjs-preload
- src
- tests
- node-express-esm-preload
- src
- tests
- node-integration-tests
- suites
- express
- ignore-layers-type
- late-init
- no-code
- utils/runner
- packages/node
- src
- integrations
- http
- tracing
- sdk
- test/sdk
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
| |||
613 | 611 | | |
614 | 612 | | |
615 | 613 | | |
| 614 | + | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 0 additions & 117 deletions
This file was deleted.
Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 0 additions & 68 deletions
This file was deleted.
0 commit comments