@opentelemetry/instrumentation/hook.mjs
crashes when loading a module containing export * from
syntax
#4547
Labels
bug
Something isn't working
pkg:instrumentation
priority:p1
Bugs which cause problems in end-user applications such as crashes, data inconsistencies, etc
What happened?
Steps to Reproduce
Create a Node.js project with a
package.json
with the dependency@opentelemetry/instrumentation
v0.49.1 properly installed.Then, in
a.mjs
:In
b.mjs
:Then, with the the current version of the Node.js CLI (i.e. Node.js v21.7.1) run:
Expected Result
Node.js script runs and exits without an error.
Actual Result
The Node.js script exits with an error, and this console output:
Additional Details
This is a really critical bug that's blocking us from instrumenting a Node.js project at work; it makes it impossible to instrument ESM dependencies like
koa
via@opentelemetry/instrumentation-koa
in an ESM project.OpenTelemetry Setup Code
package.json
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: