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
Hello, I have a question regarding the use of vercel/otel.
After setting the traceparent header in the browser and sending a request to Next.js,
I expect multiple spans to be created based on the same trace ID.
However, this is not happening as expected. Instead of using the trace ID from the traceparent header I set, a new trace ID generated by Next.js is being used.
Is there any additional configuration required to create spans based on the traceparent header sent from the browser?
Or is this functionality not supported by vercel/otel?
Result
All requests were successfully created with random Trace IDs.
However, the Trace IDs were not the ones from the traceparent header as I expected.
The text was updated successfully, but these errors were encountered:
rudebono
changed the title
Issue with Handling Incoming traceparent Header
Issue with Handling Incoming traceparent Header (NEXT_OTEL_VERBOSE=1)
Jul 24, 2024
Hello, I have a question regarding the use of vercel/otel.
After setting the
traceparent
header in the browser and sending a request to Next.js,I expect multiple spans to be created based on the same trace ID.
However, this is not happening as expected. Instead of using the trace ID from the
traceparent
header I set, a new trace ID generated by Next.js is being used.Is there any additional configuration required to create spans based on the
traceparent
header sent from the browser?Or is this functionality not supported by vercel/otel?
I am using the following:
node: v18.20.3
next.config.mjs
instrumentation.ts
.env.development
Header
Result
All requests were successfully created with random Trace IDs.
However, the Trace IDs were not the ones from the
traceparent
header as I expected.The text was updated successfully, but these errors were encountered: