Skip to content

Pino instrumentation fails when using ES modules #1587

@nlindley

Description

@nlindley

What version of OpenTelemetry are you using?

  • @opentelemetry/api: 1.4.1
  • @opentelemetry/instrumentation: 0.41.0
  • @opentelemetry/instrumentation-pino: 0.34.0
  • @opentelemetry/sdk-node: 0.41.0
  • @opentelemetry/sdk-trace-base: 1.15.0

What version of Node are you using?

18.16.1

What did you do?

Attempted to instrument pino using either default or named imports.

What did you expect to see?

Trace information in the logs.

What did you see instead?

When using default imports, the application crashes when pino() is called. When using named imports, trace information is not added to the logs.

Additional context

We have minimal reproductions of the issues:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghas:reproducerThis bug/feature has a minimal reproduction providedpkg:instrumentation-pinopriority:p1Bugs which cause problems in end-user applications such as crashes, data inconsistencies

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions