getsentry / getsentry/sentry-javascript

Instrumenting Next.js SSR process

Offen
#16,427 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Feature Next.js
Vorherrschende Sprache
TypeScript
Sterne
8.7k
Forks
1.8k
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
515

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.