This is an internal package for the Sentry JavaScript SDKs. It is not part of the public API contract and may change at any time.
It contains the runtime diagnostics-channel injection used by the server SDKs — the module hooks
that transform instrumented dependencies as they load at runtime (register, hook, import-hook),
together with the vendored code transformer they rely on.
Important: this package must be kept external (not bundled) when bundling a server. Its runtime hook loads a transformer that self-references its own on-disk
node_moduleslocation; bundling it strips the transformer and breaks that self-reference. When you bundle your server, either keep@sentry/server-runtime-injectionexternal, or rely on the build-time instrumentation from the Sentry bundler plugins instead.