-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL parameterization not taking into account express routers in v8 #12103
Comments
Hey, thanks for reporting this. cc @onurtemizkan what is the status for this, do you remember? |
Thanks for reporting this @richardsimko, Are you using multiple or nested router instances, and if so, what's the node version you're using? The last discussion was about some gaps in node versions lower than 16. We can try to fix this upstream on opentelemetry repository. Could you provide a minimal reproduction if possible, so we can be sure that use is properly covered in the patch? |
Ah yeah, and related question: What node version do you use? |
Oh I thought I put that in the issue, sorry! I'm using Node 20.12.2 and Express 4.19.2. I updated the issue with this as well. We are indeed using two levels of routers now that I check more closely, I've updated the example to reflect our real usage. |
Yeah we validated this with https://github.com/getsentry/chartcuterie/ - an express service we run in Sentry itself. We'll need to make some upstream changes to OpenTelemetry to fix this! |
Is there any ETA on this? |
This is tracked upstream with open-telemetry/opentelemetry-js-contrib#1993 - we need to fix it with OpenTelemetry! no ETA atm, but we have someone on our side taking a look this week. |
A PR closing this issue has just been released 🚀This issue was referenced by PR #13948, which was included in the 8.35.0-beta.0 release. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.0.0
Framework Version
Node: 20.12.2
Express: 4.19.2
Link to Sentry event
https://fl101.sentry.io/performance/trace/9bd6ae8a599b0919ccd1941defbcb6f5
SDK Setup
Steps to Reproduce
Mount a router with the following:
Expected Result
Calls to
GET /api/foo
should be parameterized as such.Trace collected with 7.x: https://fl101.sentry.io/performance/trace/9f106d65ff644716b32603965c85b61c/?node=span-a36c5a350b874100&node=txn-98cdcb0f6770474aaa27709f1adfe49b&statsPeriod=14d×tamp=1715939877
Actual Result
They are presented as
/foo
.Trace collected with 8.x: https://fl101.sentry.io/performance/trace/9bd6ae8a599b0919ccd1941defbcb6f5/?fov=0%2C112.99991607666016&node=txn-3ead7993a2bf44b99dc67e857ae743ec&statsPeriod=14d×tamp=1715938309
The text was updated successfully, but these errors were encountered: