Closed Mordred closed 4 months ago
Hey @Mordred thanks for writing in!
My hunch is that this is caused by our express router instrumentation that does a bunch of shady prototype patching to correctly parameterize a route name in time. The good news is that we're getting rid of all of this in favour of OpenTelemetry instrumentation. My hope is that their parameterization approach is much better than ours and problems like this one are going to be a thing of the past. This new instrumentation will be added in version 8 of our SDKs which we're working on right now.
We already shipped an alpha version: @sentry/node@8.0.0-alpha.2
. If you're brave, feel free to give it a try ;) I'm curious if this fixes your issue.
Btw, https://github.com/getsentry/sentry-javascript/issues/11023 sums up which frameworks and libraries will be instrumented automatically (via OpenTelemetry) in v8.
OK, I will wait for at least beta release :)
We released v8.0.0, could you give it a try and let us know if it works as expected for you?
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community
, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
@mydea the issue is happening with v8 also. Tried with version 8.27.0.
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/node
SDK Version
7.106.0
Framework Version
express@4.18.2
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
I have two middlewares with same variable but the second is more strict, because I need to do something for some languages. (https://replit.com/@jantosko/Sentry-Express-Transaction-Name#index.js)
When you hit
/sk/hello/
the console output is:Expected Result
I expected that the transaction name will be
GET /:language/hello/
Actual Result
Transaction name is
GET /:language/:language
:(