getsentry / getsentry/sentry-javascript

Populate attributes for the Next.js insights page for Turbopack

Aperta
#16,215 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Task
Lingua principale
TypeScript
Stelle
8.7k
Fork
1.8k
Merge medio
1g 17h
PR unite (30g)
515

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.