ref(astro)!: Migrate import hook to makeOrchestrionLoader - #22861
Draft
andreiborza wants to merge 2 commits into
Draft
ref(astro)!: Migrate import hook to makeOrchestrionLoader#22861andreiborza wants to merge 2 commits into
andreiborza wants to merge 2 commits into
Conversation
Contributor
size-limit report 📦
|
`@sentry/node` was the last package holding `@opentelemetry/instrumentation`. All instrumentation is now channel-based via orchestrion, so the surface this dependency backed is dead or a no-op: - `generateInstrumentOnce` (and the framework re-exports) had no call sites. - `ensureIsWrapped`'s shimmer-based check can no longer detect channel-based express/koa/hapi, so its warning and the `missing_instrumentation` context were removed, along with the `disableInstrumentationWarnings` option and the `MissingInstrumentationContext` type. - The `@sentry/node/import` ESM hook now only registers the orchestrion diagnostics-channel injection; the legacy iitm `@sentry/node/loader` entry was removed. Adds the `makeOrchestrionLoader` rollup util (import-only, delegates to `@sentry/server-utils/orchestrion/import-hook`). The legacy `makeOtelLoaders` util is kept temporarily so the framework SDKs still build until they migrate in the following PRs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Switch the `@sentry/astro/import` loader to the orchestrion-based `makeOrchestrionLoader` and drop the obsolete `./loader` export.
andreiborza
force-pushed
the
ab/js-3203-astro-orchestrion-loader
branch
from
July 30, 2026 13:01
49a110a to
89b0f26
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
Part of the
@opentelemetry/instrumentationremoval stack (based on #22843).@sentry/astro's./importloader from the legacymakeOtelLoadersbuild util tomakeOrchestrionLoader, so the generatedimport-hook.mjsimports@sentry/server-utils/orchestrion/import-hookdirectly../loaderexport (the iitm--loaderentry, unused on Node >= 20.19).Why
Orchestrion is the only instrumentation path now, so the framework's
--importhook should register it directly instead of the removed iitm loader.--loaderno longer applies (minimum Node is 20.19.0) and orchestrion has no--loaderequivalent, so the./loaderexport is dead.