getsentry / getsentry/sentry-javascript

Instrumenting Next.js SSR process

Ouverte
#16,427 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Feature Next.js
Langage dominant
TypeScript
Étoiles
8.7k
Forks
1.8k
Merge moyen
1 j 17 h
PR mergées (30 j)
523

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.