Skip to content

Continue traces for Next.js 13 server components #7179

@lforst

Description

@lforst

Problem Statement

If a client requests a server component we would like to continue traces if there was an active transaction.

Solution Brainstorm

Get headers via headers() in server component and just continue the trace. Builds on #7176

Right now there is a complication though. Next.js uses AsyncLocalStorage to propagate headers without having to explicitly pass them around and up until now I have found no way to call headers() from within a wrapper without running into some issue with AsyncLocalStorage.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions