pub struct TeamTraceNode {
pub event_id: String,
pub run_id: String,
pub seq: u64,
pub kind: RunEventKind,
pub parent: Option<String>,
pub children: Vec<String>,
pub depth: Option<u32>,
}Expand description
One node in an assembled team trace: a single journaled event plus its position in the cross-journal causal tree.
Fields§
§event_id: StringThe event’s deterministic id ({run_id}:{seq}).
run_id: StringThe journal (run) this event was recorded in.
seq: u64The event’s sequence number within its own journal.
kind: RunEventKindWhat happened.
parent: Option<String>The parent event id as journaled. None for a causal root; an id
outside the assembled set means the parent lives in a journal that
was not part of this assembly (the node is then a root of this
trace, and parent still names where it hangs in the wider tree).
children: Vec<String>The event ids of this node’s children inside the assembled set,
sorted by the child’s (run_id, seq) — deterministic regardless of
the order snapshots were supplied in.
depth: Option<u32>The node’s depth below a root (root = 0). None when the node is
unreachable from every root — the signature of a parent cycle that
no root can enter, which a hand-edited or corrupted journal could
produce. TeamTrace::is_connected refuses such traces.