Skip to content

Commit dbdf5f0

Browse files
committed
clarify Ancestry options in the enum
1 parent 3cb2c16 commit dbdf5f0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tracing-mock/src/ancestry.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ pub enum Ancestry {
2020
/// The event or span is an explicitly defined root. It was created with `parent: None` and
2121
/// has no parent.
2222
IsExplicitRoot,
23-
/// The event or span has a contextually assigned parent with the specified name. Additionally,
24-
/// it has no explicitly assigned parent.
23+
/// The event or span has a contextually assigned parent with the specified name. It has no
24+
/// explicitly assigned parent, nor has it been explicitly defined as a root (it was created
25+
/// without the `parent:` directive). There was a span in context when this event or span was
26+
/// created.
2527
HasContextualParent(String),
26-
/// The event or span is a contextual root. It has no contextual parent and also has no
27-
/// explicitly assigned parent.
28+
/// The event or span is a contextual root. It has no explicitly assigned parent, nor has it
29+
/// been explicitly defined as a root (it was created without the `parent:` directive).
30+
/// Additionally, no span was in context when this event or span was created.
2831
IsContextualRoot,
2932
}
3033

0 commit comments

Comments
 (0)