Skip to content

Graphorin API reference v0.15.1


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

Stable

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;>