Skip to content

Commit

Permalink
clarify Ancestry options in the enum
Browse files Browse the repository at this point in the history
  • Loading branch information
hds committed Aug 5, 2024
1 parent 3cb2c16 commit dbdf5f0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tracing-mock/src/ancestry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ pub enum Ancestry {
/// The event or span is an explicitly defined root. It was created with `parent: None` and
/// has no parent.
IsExplicitRoot,
/// The event or span has a contextually assigned parent with the specified name. Additionally,
/// it has no explicitly assigned parent.
/// The event or span has a contextually assigned parent with the specified name. It has no
/// explicitly assigned parent, 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.
HasContextualParent(String),
/// The event or span is a contextual root. It has no contextual parent and also has no
/// explicitly assigned parent.
/// 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.
IsContextualRoot,
}

Expand Down

0 comments on commit dbdf5f0

Please sign in to comment.