MCPcopy Index your code
hub / github.com/simstudioai/sim / toFull

Function toFull

apps/sim/lib/logs/log-views.ts:82–89  ·  view source on GitHub ↗
(
  spans: TraceSpan[],
  ctx: LogViewContext,
  selector?: BlockSelector
)

Source from the content-addressed store, hash-verified

80 * the whole trace.
81 */
82export async function toFull(
83 spans: TraceSpan[],
84 ctx: LogViewContext,
85 selector?: BlockSelector
86): Promise<FullSpan[]> {
87 const roots = selectSpans(spans, selector)
88 return Promise.all(roots.map((s) => fullSpan(s, ctx)))
89}
90
91function selectSpans(spans: TraceSpan[], selector?: BlockSelector): TraceSpan[] {
92 if (!selector || (!selector.blockId && !selector.blockName)) return spans

Callers 2

log-views.test.tsFile · 0.90
executeFunction · 0.90

Calls 2

selectSpansFunction · 0.85
fullSpanFunction · 0.85

Tested by

no test coverage detected