No root span on some traces using Opentelemetry #61505
Unanswered
bradleyberwick
asked this question in
Help
Replies: 1 comment
-
@bradleyberwick did you manage to find a workaround for this issue? I think I'm coming across the same one, I get lots of spans, and they do show up as being connected to each other - but none of them are marked as root spans, which makes it hard to make sense of them. I've tried with the vercel/otel option and the opentelemetry version (like your example) and I think it behaves the same either way. PS. If you don't mind, I might have to borrow that requestHook! 😃 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm using Opentelemetry to send traces and metrics from my Next.js app to Grafana. For all API requests and *.json requests, the traces do no have a root span i.e. there's no span with 'parentSpanID = 0000000000000000'. This is an issue as I can't view the traces correctly in Grafana. My Opentelemetry instrumentation code is below.
Is there an issue with my instrumentation or is this an issue with Next.js?
I'm pretty new to Next.js so if there's any other helpful information which I've not included here, please let me know.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions