next.js
c2b51426 - otel: Use correct parent span for Node.js middleware (#95306)

Commit
153 days ago
otel: Use correct parent span for Node.js middleware (#95306) Node.js Middleware was inheriting the wrong parent span (and behaved differently compared to Edge runtime Middleware) `Middleware.execute` and `BaseServer.handleRequest` should be sibling spans (depending on context, both are root spans). Previously `BaseServer.handleRequest` had a child span `Middleware.execute` Depends on https://github.com/vercel/next.js/pull/95357 to make the direct entrypoint test pass
Author
Parents
Loading