getsentry / getsentry/sentry-javascript

Instrumenting Next.js SSR process

Aperta
#16,427 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Feature Next.js
Lingua principale
TypeScript
Stelle
8.7k
Fork
1.8k
Merge medio
1g 17h
PR unite (30g)
515

Descrizione

### Problem Statement

Looking at the Next.js trace it produces out of the box, there's a period after "data fetching" and starting to send back the response that's not instrumented and looks blank.

![Image](https://github.com/user-attachments/assets/9937b240-c0f0-4e3a-beac-d95938a9aa15)

I'm assuming this is when Next.js renders the React component subtree, and generates HTML + RSC Payload, but it's not really self-explanatory. Is it possible to add spans to make it clear to the users what happens during that period?

### Solution Brainstorm

Spans!

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.