I am using ESM in my node application, when I tried opentelemetry to auto instrument my app using @opentelemetry/auto-instrumentations-node package I could not generate any tracing, is this normal behavior? is there a suggested way to auto-instrument with ESM? Or I am left with the option to manual instrument my app.
Asked
Active
Viewed 351 times
1 Answers
1
The auto-instrumentation only works with libraries that are currently supported.
You can take a look at the OpenTelemetry Registry to check all supported libraries.
You can also check the GitHub repository, in which you could raise a Feature Request to ask for the implementation of an auto instrumentation for ESM.
At the moment ESM is not supported by the auto instrumentation, and in order to get traces and metrics to your code, you will need to manually instrument your code.
This process is detailed in the OpenTelemetry official documentation.

Juliano Costa
- 2,175
- 2
- 18
- 30