You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constapp=express()constAPIv1=Router()APIv1.post('/test', ...)constroot=Router()// Here's the important partapp.use('/api',root)app.use('/api/v1',APIv1)
I then send POST /api/v1/test
Expected 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:
app.use('/api/v1',APIv1)app.use('/api',root)
This worked as expected in previous versions (at least in 6.17.8 but not in 7.13.0).
The text was updated successfully, but these errors were encountered:
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.
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/test
Expected 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).
The text was updated successfully, but these errors were encountered: