ReadonlydepthDepth in the tree: 0 for a root.
ReadonlyendEnd of each span, ms after the origin. Not clamped: a malformed span may end before it starts.
ReadonlyevEvents in compressed-row form. evOff has length + 1 entries: row r owns evOff[r] … evOff[r + 1] - 1.
ReadonlyevPosition of each event in its span's original events array, so span.events[evSrc[k]] is event k.
ReadonlyevEvent times, ms after the origin, sorted within each span. One entry per event of the whole trace.
ReadonlyextentLength of the time axis: the latest start or end of any span, ms after the origin. 0 for an empty trace.
ReadonlyidsSpan id of each row.
ReadonlykindSpanKind value; 0 (unspecified) for anything outside 0–255.
ReadonlylengthNumber of spans (rows).
ReadonlynameIndex into SpanTable.names.
ReadonlynamesDistinct span names, in order of first appearance among the rows.
ReadonlyoriginThe instant that counts as time zero, the earliest span start: nanoseconds since the Unix epoch.
ReadonlyparentRow of the parent span, or -1 for a root.
ReadonlyservicesDistinct service names, in order of first appearance among the rows.
ReadonlystartStart of each span, ms after the origin.
ReadonlystatusStatus code: 0 unset, 1 ok, 2 error (as sent; 0 when missing).
ReadonlysubtreeOne past the last row of this span's subtree, so a leaf has subtreeEnd === row + 1.
ReadonlysvcIndex into SpanTable.services.
Columnar, read-only form of one trace. Every array has one entry per row unless noted; do not mutate any of them.
Invariants:
row + 1 … subtreeEnd[row] - 1;start, ties keeping input order;depth[row] === depth[parent[row]] + 1, and0for roots;evTis non-decreasing within each span's rangeevOff[row] … evOff[row + 1] - 1.