Pino instrumentation not working when using ES modules #2838
Labels
bug
Something isn't working
needs:author-response
needs:reproducer
This bug/feature is in need of a minimal reproducer
pkg:instrumentation-pino
Uh oh!
There was an error while loading. Please reload this page.
What version of OpenTelemetry are you using?
@opentelemetry/[email protected]
@opentelemetry/[email protected]
@opentelemetry/[email protected]
[email protected]
What version of Node are you using?
Node.js 24
What did you do?
When I converted the example code in the
@opentelemetry/instrumentation-pino
package to ES module syntax, the instrumentation stopped working. But it works as expected when run using the original CommonJS format.What did you expect to see?
The
trace_id
andspan_id
in the logs, alongside their OTLP representation as is the case with the original CommonJS format:What did you see instead?
No
trace_id
orspan_id
. The OTLP console representation was also absent:Additional context
The text was updated successfully, but these errors were encountered: