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

Function span

apps/sim/lib/logs/log-views.test.ts:52–62  ·  view source on GitHub ↗
(overrides: Partial<TraceSpan> = {})

Source from the content-addressed store, hash-verified

50const ref = (preview: unknown) => ({ __sim: 'ref', preview, size: 100 })
51
52function span(overrides: Partial<TraceSpan> = {}): TraceSpan {
53 return {
54 id: 'span-1',
55 name: 'Agent 1',
56 type: 'agent',
57 duration: 100,
58 startTime: '2026-01-01T00:00:00.000Z',
59 endTime: '2026-01-01T00:00:00.100Z',
60 ...overrides,
61 } as TraceSpan
62}
63
64beforeEach(() => {
65 vi.clearAllMocks()

Callers 1

log-views.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected