Skip to content

@opentelemetry/instrumentation-express doesnt correctly report all the spans with express 5.0 or > #3191

@LRagji

Description

@LRagji

What version of OpenTelemetry are you using?

latest(ltgm docker image)

What version of Node are you using?

node 22 LTS

What did you do?

  1. Clone the example for @opentelemetry/instrumentation-express
  2. Run the run_test api route and verify spans are getting captured.(they show internal details like JSON parser, init etc)
  3. Update express to 5.0 in package json, delete node modules and do npm i
  4. Run the run_test api route.
  5. You will find no spans are every recorded from @opentelemetry/instrumentation-express library

What did you expect to see?

Spans logged by @opentelemetry/instrumentation-express, with same details for middleware etc, but none are logged.

What did you see instead?

No Spans, apart from HTTP spans

Additional context

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Labels

bugSomething isn't workingpkg:instrumentation-expresspriority:p4Bugs and spec inconsistencies which do not fall into a higher prioritization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions