ReadonlychildrenParent spanId → child spanIds, sorted by start time.
ReadonlyorderedAll spans in depth-first pre-order, so ordered[i].idx === i.
ReadonlyrootsSpan IDs of root spans (no resolvable parent), sorted by start time.
ReadonlysizeTotal number of spans.
ReadonlyspansAll indexed spans keyed by spanId for O(1) lookup.
ReadonlytableThe same spans as parallel typed arrays, with exact sub-millisecond times and the tree as row arithmetic.
ReadonlytimePre-computed bounding time range in whole milliseconds since the Unix epoch.
ReadonlytraceTrace ID from the first root span (for display).
Immutable index over a set of spans.
All fields are pre-computed at construction time by buildSpanIndex. The index is read-only; per-view state (what is collapsed, selected or filtered) lives in the trace store, not here.