fix(node): Vendor `InstrumentationNodeModuleFile` to fix Bun `--bytecode` crash (#21262)
`InstrumentationNodeModuleFile` from `@opentelemetry/instrumentation` resolves `path.normalize`. When Bun's `--bytecode` compiler inlines the module tree into a single flat bundle, it renames `normalize` to `normalize4` and then loses the scope binding in bytecode compilation, producing a `ReferenceError` at runtime. Vendor a local `InstrumentationNodeModuleFile` class that calls `path.normalize()` directly, replacing the import from `@opentelemetry/instrumentation` in all vendored instrumentations within `@sentry/node`. Closes https://github.com/getsentry/sentry-javascript/issues/21256
S
Sigrid committed
4940dd801916f11858ca4ea43749b0eb99a626a9
Parent: f1b3a7e
Committed by GitHub <noreply@github.com>
on 6/1/2026, 1:23:53 PM