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.
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 thetraceparent
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.