You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 #7176Right 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.The text was updated successfully, but these errors were encountered: