@opentelemetry/instrumentation-express - incorrect route set to span, if middlewares are being used #2680
Labels
bug
Something isn't working
has:reproducer
This bug/feature has a minimal reproduction provided
pkg:instrumentation-express
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
What version of OpenTelemetry are you using?
What version of Node are you using?
What did you do?
This repository reproduces the bug:
https://github.com/RigoTamas/opentelemetry-express-instrumentation-span-name-bug
What did you expect to see?
I expected to see the
http.route
tag on the root span, and the name of the root span to be set toGET /v1/user
What did you see instead?
Instead I have seen, that the
http.route
tag on the root span, and also the name of the root span gets set toGET /
Additional Context
This issue arises because I am calling middlewares on a child router.
The text was updated successfully, but these errors were encountered: