spans
Call Signature
Section titled “Call Signature”spans(
run):NormalizedSpan[]
Flattens every recorded span from a normalized harness run or trace list.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Example
Section titled “Example”const modelSpans = spans(result).filter((span) => span.kind === "model");Call Signature
Section titled “Call Signature”spans(
traces):NormalizedSpan[]
Flattens every recorded span from a normalized harness run or trace list.
Parameters
Section titled “Parameters”traces
Section titled “traces”readonly NormalizedTrace[] | undefined
Returns
Section titled “Returns”Example
Section titled “Example”const modelSpans = spans(result).filter((span) => span.kind === "model");