Skip to content

Pageload transaction names for dynamic catch-all routes is the filepath instead of the url pathname #4677

@kylemh

Description

@kylemh

Is there an existing issue for this?

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

https://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

Steps to Reproduce

  1. Create a new Next.js application with the Sentry plug-in configured.
  2. Create a dynamic catch-all page file. Let's say it's pages/[...app].tsx.
  3. 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.
  4. 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

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions