[otel] honor traceparent for verbose mode spans (#93874)
## Problem Fixes the trace propagation issue reported in https://github.com/vercel/otel/issues/107. `NEXT_OTEL_VERBOSE=1` opened the `NextServer.getRequestHandler` span before request header propagation, so incoming `traceparent` was ignored and framework spans started a new trace. ## Solution Extract propagated request context before wrapper request-handler spans. Add focused e2e coverage in the existing OpenTelemetry suite for verbose spans inheriting the incoming `traceparent`, including the parent span id. Validated with `pnpm --filter=next build` and `pnpm test-dev-turbo test/e2e/opentelemetry/instrumentation/opentelemetry.test.ts`. <!-- NEXT_JS_LLM_PR -->
Showing
Please
register
or
sign in
to comment