-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDKType: Improvement
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?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/nextjs
SDK Version
6.17.5
Framework Version
6.17.5
Link to Sentry event
Steps to Reproduce
- Create a new Next.js application with the Sentry plug-in configured.
- Create a dynamic catch-all page file. Let's say it's
pages/[...app].tsx
. - 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. - Note that all pageload transactions for the above URL have a transaction name of
/[...app]
.
Expected Result
Pageload transaction names should be the result of the requested pathname. Not the Next.js filepath.
Actual Result
In dev tools, I see:
Sentry Logger [Log]: [Tracing] starting pageload transaction - /[...app]
Sentry Logger [Log]: [Tracing] Finishing pageload transaction: /[...app].
Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDKType: Improvement