spansByKind
Call Signature
Section titled “Call Signature”spansByKind(
run,kind):NormalizedSpan[]
Returns spans of one coarse operation kind from a normalized run or trace list.
Parameters
Section titled “Parameters”NonNullable<"custom" | "tool" | "model" | "run" | "agent" | "guardrail" | "handoff" | undefined>
Span kind to keep.
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”spansByKind(
traces,kind):NormalizedSpan[]
Returns spans of one coarse operation kind from a normalized run or trace list.
Parameters
Section titled “Parameters”traces
Section titled “traces”readonly NormalizedTrace[] | undefined
NonNullable<"custom" | "tool" | "model" | "run" | "agent" | "guardrail" | "handoff" | undefined>
Span kind to keep.