Skip to content
Discussion options

You must be logged in to vote

From what I’ve seen in the Next.js internals, that span mainly covers the phase where Next.js resolves and constructs the React component tree, including layouts, pages, and segments — but before it actually starts rendering or triggering async data dependencies.

The data-fetching for server components (for example, async calls in RSC or fetch() inside components) usually happens after the tree is built, during the render / flight generation phase, which appears under separate spans (often something like renderToReadableStream or renderToString).

So in your trace, it makes sense that createComponentTree completes first, and then the spans for your backend requests start — that sequence re…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@abnud11
Comment options

Comment options

You must be logged in to vote
1 reply
@abnud11
Comment options

Answer selected by abnud11
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants