getsentry / getsentry/sentry-javascript

Instrumenting Next.js SSR process

Open
#16,427 3 comments 0 reactions 0 assignees View on GitHub
Feature Next.js
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
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!

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.