Skip to content

ObservabilityConfig

optional exporter?: "json" | "console" | ((trace) => Promise<void>);

Where to send the final SessionTrace. Default: console.


optional includeContent?: boolean;

Include message text in span events (PII risk). Default: false.


optional metrics?: Metrics;

Optional metrics service for timings alongside spans.


optional outputPath?: string;

Output file for json exporter. Default: ./.kuralle-traces/session-<id>.json


optional serviceName?: string;

Service name stored on spans.


optional traceStream?: (event) => void;

Optional live trace stream (e.g. Kuralle Studio WebSocket). Fire-and-forget; keep handlers synchronous or schedule async work without blocking the harness.

Parameter Type

event

TraceStreamEvent

void