-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@opentelemetry/instrumentation/hook.mjs
crashes when loading a module containing export * from
syntax
#4547
Comments
@jaydenseric thanks for reaching out. Unfortunately we currently do not support instrumenting ESM in these Node.js versions as support for these versions has only been added in I've opened a series of issues (one in this repo #4553) just now to better explain how a solution to the problem may come about. We're happy to accept contributions on the matter. Further context:
|
@pichlermarc till which version it should work for ESM project? |
AFAIK only Node.js v18.18.2 is working at this point in time. |
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: