pub enum ExpectedAncestry {
HasExplicitParent(ExpectedSpan),
IsExplicitRoot,
HasContextualParent(ExpectedSpan),
IsContextualRoot,
}
Expand description
The ancestry of an event or span.
An event or span can have an explicitly assigned parent, or be an explicit root. Otherwise, an event or span may have a contextually assigned parent or in the final case will be a contextual root.
Variants§
HasExplicitParent(ExpectedSpan)
The event or span has an explicitly assigned parent (created with parent: span_id
) span.
IsExplicitRoot
The event or span is an explicitly defined root. It was created with parent: None
and
has no parent.
HasContextualParent(ExpectedSpan)
The event or span has a contextually assigned parent span. It has no explicitly assigned
parent span, nor has it been explicitly defined as a root (it was created without the
parent:
directive). There was a span in context when this event or span was created.
IsContextualRoot
The event or span is a contextual root. It has no explicitly assigned parent, nor has it
been explicitly defined as a root (it was created without the parent:
directive).
Additionally, no span was in context when this event or span was created.