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
{{ message }}
Repository navigation
Next.js: Record what the proxy did on its span #27068
A proxy span tells us that the proxy ran and how long it took. It does not tell us what the proxy decided.
What is missing
No response status code.
No marker for the outcome: continue, rewrite, redirect, or a direct response.
No rewrite or redirect target.
Every run is named middleware {METHOD}, and the request path is only in http.target. Users cannot tell a redirecting run from a pass-through run.
To do
Decide which attributes to set and check them against the span attribute conventions.
Find a way to read the outcome that also works under Turbopack, where the proxy is not wrapped at build time. Next.js marks the outcome on the response with x-middleware-next, x-middleware-rewrite and the Location header.
Activity
linear-code commentedon Dec 2, 2026
JS-4209