Skip to content

Graphorin API reference v0.7.0


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

Function: deleteSpansForSession()

ts
function deleteSpansForSession(conn, sessionId): number;

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

Delete every persisted span of one session (W-006). Called by the session hard-delete cascade (the spans entry of SESSION_SCOPED_PURGES); exported for hosts that manage spans out of band. Returns the number of rows deleted.

Parameters

ParameterType
connSqliteConnection
sessionIdstring

Returns

number

Stable