Title: Pageload transaction names for dynamic catch-all routes is the filepath instead of the url pathname · Issue #4677 · getsentry/sentry-javascript · GitHub
Open Graph Title: Pageload transaction names for dynamic catch-all routes is the filepath instead of the url pathname · Issue #4677 · getsentry/sentry-javascript
X Title: Pageload transaction names for dynamic catch-all routes is the filepath instead of the url pathname · Issue #4677 · 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/4677
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pageload transaction names for dynamic catch-all routes is the filepath instead of the url pathname","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\nSentry Saas (sentry.io)\r\n\r\n### Which package are you using?\r\n\r\n@sentry/nextjs\r\n\r\n### SDK Version\r\n\r\n6.17.5\r\n\r\n### Framework Version\r\n\r\n6.17.5\r\n\r\n### Link to Sentry event\r\n\r\nhttps://sentry.io/organizations/capsule-corporation/performance/summary/?environment=production&project=1219269&query=transaction.duration%3A%3C15m+transaction.op%3Apageload&statsPeriod=1h&transaction=%2F%5B...app%5D&unselectedSeries=p100%28%29\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a new Next.js application with the Sentry plug-in configured.\r\n2. Create a [dynamic catch-all page file](https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes). Let's say it's `pages/[...app].tsx`.\r\n3. Deploy, visit `url.com/some-random-page-which-loads-the-dynamic-catch-all-route` and watch for issues on the Web Vitals tab of the Performance dashboard.\r\n4. Note that all pageload transactions for the above URL have a transaction name of `/[...app]`.\r\n\r\n### Expected Result\r\n\r\nPageload transaction names should be the result of the requested pathname. Not the Next.js filepath.\r\n\r\n### Actual Result\r\n\r\nIn dev tools, I see:\r\nSentry Logger [Log]: [Tracing] starting pageload transaction - /[...app]\r\nSentry Logger [Log]: [Tracing] Finishing pageload transaction: /[...app].\r\n","author":{"url":"https://github.com/kylemh","@type":"Person","name":"kylemh"},"datePublished":"2022-03-03T13:41:09Z","url":"https://github.com/getsentry/sentry-javascript/issues/4677"}
| 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:e349c49c-feaa-cbac-58cf-8901ddd029e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C68:3A6E49:2D3815:3A8E87:6B04F2C3 |
| html-safe-nonce | 8852411f18468826d114fe8cb9b60fa0f8fe9e717d4f2c152b28ad66c4434c03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzY4OjNBNkU0OToyRDM4MTU6M0E4RTg3OjZCMDRGMkMzIiwidmlzaXRvcl9pZCI6IjE1NTc1OTQwMTIyMjYyMjA3MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c8c0ba3a891ac0d75741397e62b606305cf0922e8160cfbc899032247a12be9f |
| hovercard-subject-tag | issue:1158423798 |
| 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/4677/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac21829af3a8d0c9869663b1354bf4c867e14bd15c34cc6c4bb474b82608974e/getsentry/sentry-javascript/issues/4677 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac21829af3a8d0c9869663b1354bf4c867e14bd15c34cc6c4bb474b82608974e/getsentry/sentry-javascript/issues/4677 |
| 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 | kylemh |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0ff704de2671f716381d0ef36115cddb81606dd5397a5b003230bb8c02d623b |
| 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 | cbe60d43d23e17438879ed212ad20068394651c4 |
| 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