getsentry / getsentry/sentry-javascript

Populate attributes for the Next.js insights page for Turbopack

Open
#16,215 1 comment 0 reactions 0 assignees View on GitHub
Task
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.