How do I start a span with no parent when another span is active? #2410
Unanswered
alevenberg
asked this question in
Q&A
Replies: 1 comment 6 replies
-
For the root span, the parent_span_id field would contain the span_id of the current span. There is no way to make it null/empty/missing. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create a span with no parent.
Currently, when I call
StartSpan()
, the parent defaults to the current active span.I want to do something like
But the parent needs to be
SpanContext
orcontext::Context
. By default it uses,SpanContext::GetInvalid()
, which will create a child of the active span. So, I'm not sure what I else I could use.Is there a way to start a span with no parent?
Thanks, Anna
Beta Was this translation helpful? Give feedback.
All reactions