Wrong transaction name if multiple routers match #6004
Copy link
Copy link
Closed
Description
Activity
Hi @Martomate thanks for reporting! Looks like our routing parameterization which we more or less fundamentally changed in #5450 has an issue then. I'll backlog this for now as we're very busy at the moment.
PRs are welcome as always, in case anyone wants to take a look at this.
- added and removed
on Oct 21, 2022
Metadata
Metadata
Assignees
Labels
No labels
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/node
SDK Version
7.16.0
Framework Version
No response
Link to Sentry event
No response
Steps to Reproduce
My code looks roughly like this:
I then send
POST /api/v1/testExpected Result
The transaction name (in the Performance tab) should be
POST /api/v1/test/Actual Result
The transaction name is
POST /api/api/v1/test/It works if I swap the order of the routers:
This worked as expected in previous versions (at least in 6.17.8 but not in 7.13.0).