Skip to content

Populate attributes for the Next.js insights page for Turbopack #16215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lforst opened this issue May 7, 2025 · 0 comments
Open

Populate attributes for the Next.js insights page for Turbopack #16215

lforst opened this issue May 7, 2025 · 0 comments

Comments

@lforst
Copy link
Member

lforst commented May 7, 2025

Description

We require two attributes on certain spans for the Next.js insights page:

  • sentry.nextjs.function.type (for example "Page", "Layout", "generateMetadata")
  • sentry.nextjs.function.route (for example "/foo/bar/[id]/page" or "/foo/bar/[id]/layout)

The spans that should have these attributes are the default export functions for Page, Layout, etc. files, and all generation functions.

This probably just involves taking spans emitted by Next.js and transforming them to have the right attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant