Skip to content

Graphorin API reference v0.5.0


Graphorin API reference / @graphorin/store-sqlite / / traceSourceForSession

Function: traceSourceForSession()

ts
function traceSourceForSession(conn, sessionId): AsyncIterable<SpanRecord<SpanType>>;

Defined in: packages/store-sqlite/src/span-store.ts:100

Read a session's persisted spans back as an ordered AsyncIterable<SpanRecord> — the traceSource shape Session.replay() and the graphorin memory why CLI consume. Spans are ordered by start time (then span id) so replay reproduces the original run order.

Parameters

ParameterType
connSqliteConnection
sessionIdstring

Returns

AsyncIterable<SpanRecord&lt;SpanType&gt;>

Stable