Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/sessions / facade / CreateSessionManagerOptions
Interface: CreateSessionManagerOptions
Defined in: packages/sessions/src/facade.ts:143
Per-session-manager configuration.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
commentaryPolicy? | readonly | CommentaryPolicy | Default commentary policy. Defaults to 'wrap'. | packages/sessions/src/facade.ts:149 |
counters? | readonly | SessionCounters | Counter sink (no-op by default). | packages/sessions/src/facade.ts:164 |
memory | readonly | SessionMemoryFacade | Memory facade - @graphorin/memory.session delegate target. | packages/sessions/src/facade.ts:147 |
newId? | readonly | (prefix) => string | Test seam: override the id generator. | packages/sessions/src/facade.ts:168 |
now? | readonly | () => number | Test seam: override Date.now(). | packages/sessions/src/facade.ts:166 |
replay? | readonly | CreateSessionReplayerOptions | Replay engine configuration. | packages/sessions/src/facade.ts:151 |
replayTraceSource? | readonly | (sessionId) => | AsyncIterable<SpanRecord<SpanType>, any, any> | Iterable<SpanRecord<SpanType>, any, any> | undefined | RP-17: default traceSource factory for Session.replay(). When a session is replayed without an explicit traceSource, this is invoked with the session id to resolve the persisted spans (e.g. (id) => traceSourceForSession(store.connection, id) from @graphorin/store-sqlite). Without it, replay falls back to the empty source and emits only replay.start / replay.end. | packages/sessions/src/facade.ts:160 |
store | readonly | SessionStoreExt | Storage adapter - @graphorin/store-sqlite is the default. | packages/sessions/src/facade.ts:145 |