Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js
) in your SDK setup.
@sentry/angular
SDK Version
7.46.0
Framework Version
Angular 15.1.5
Link to Sentry event
No response
SDK Setup
// Integrations
new BrowserTracing({
tracePropagationTargets: config.browserTracing.targets,
routingInstrumentation: Sentry.routingInstrumentation,
}),
// Providers
{
provide: Sentry.TraceService,
deps: [Router],
},
{
provide: APP_INITIALIZER,
useFactory: () => () => void 0,
deps: [Sentry.TraceService],
multi: true,
},
Steps to Reproduce
- Configure application with nested routes with parameters
- Configure BrowserTracing
- Check sentry logs
In my app I have urls like:
/:lang/user/:id/details
/en/user/123/details
Expected Result
When user visit /en/user/123/details
, transaction name should be /en/user/123/details
Actual Result
When user visit /en/user/123/details
, transaction name is /:lang
The ptoblem that my app has routes with empty path, so in function getParameterizedRouteFromSnapshot
this routes stops the recursion.