Title: Wrong transaction name for angular route event · Issue #7681 · getsentry/sentry-javascript · GitHub
Open Graph Title: Wrong transaction name for angular route event · Issue #7681 · getsentry/sentry-javascript
X Title: Wrong transaction name for angular route event · Issue #7681 · getsentry/sentry-javascript
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/...
Open Graph 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 th...
X 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 th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7681
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong transaction name for angular route event","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSelf-hosted/on-premise\r\n\r\n### 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.\r\n\r\n@sentry/angular\r\n\r\n### SDK Version\r\n\r\n7.46.0\r\n\r\n### Framework Version\r\n\r\nAngular 15.1.5\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```\r\n// Integrations\r\n\r\n new BrowserTracing({\r\n tracePropagationTargets: config.browserTracing.targets,\r\n routingInstrumentation: Sentry.routingInstrumentation,\r\n }),\r\n\r\n// Providers\r\n\r\n {\r\n provide: Sentry.TraceService,\r\n deps: [Router],\r\n },\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: () => () => void 0,\r\n deps: [Sentry.TraceService],\r\n multi: true,\r\n },\r\n\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Configure application with nested routes with parameters\r\n2. Configure BrowserTracing\r\n3. Check sentry logs\r\n\r\nIn my app I have urls like:\r\n```\r\n/:lang/user/:id/details\r\n/en/user/123/details\r\n```\r\n\r\n### Expected Result\r\n\r\nWhen user visit `/en/user/123/details`, transaction name should be `/en/user/123/details`\r\n\r\n### Actual Result\r\n\r\nWhen user visit `/en/user/123/details`, transaction name is `/:lang`\r\n\r\n\r\n\r\nThe ptoblem that my app has routes with empty path, so in function `getParameterizedRouteFromSnapshot` this routes stops the recursion.","author":{"url":"https://github.com/de-don","@type":"Person","name":"de-don"},"datePublished":"2023-03-30T18:42:32Z","url":"https://github.com/getsentry/sentry-javascript/issues/7681"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ae0ab958-416c-6583-8230-6945c4776ce6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9156:3B1056:6E5EE5:9540C1:6B04CBA6 |
| html-safe-nonce | 0e8eda6ba6d6a7a5a4c1f2d9983d846c094006bebdbf544cb0cf3fd365a7b99a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTU2OjNCMTA1Njo2RTVFRTU6OTU0MEMxOjZCMDRDQkE2IiwidmlzaXRvcl9pZCI6IjMyMTI0NDQ3OTU0MTA4OTM3MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9cd4ca95c79e103076280975d1e041104c3d0f6d0a19b2b186deefc8a1d0231c |
| hovercard-subject-tag | issue:1648131526 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/7681/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ab006dd23d8832047f58731cb3bc0ee0f5b3e4f660856410fd7908f9ef4fde1/getsentry/sentry-javascript/issues/7681 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ab006dd23d8832047f58731cb3bc0ee0f5b3e4f660856410fd7908f9ef4fde1/getsentry/sentry-javascript/issues/7681 |
| og:image:alt | 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 th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | de-don |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width