Skip to content

TelemetrySink

Defined in: console-sdk/src/config/types.ts:33

Host-owned telemetry sink (SDK_PLAN.md §3.1.3): construction-time dependency injection with no add/remove lifecycle — the SDK only ever calls OUT to it. Both methods are optional; events are the typed SdkTelemetryEvent union (§3.6.8), never stringly-typed. A sink that throws is contained by the runtime’s reporter — SDK control flow never depends on host callback behavior.

optional event(event): void

Defined in: console-sdk/src/config/types.ts:35

Receives one typed telemetry event per occurrence.

SdkTelemetryEvent

void


optional log(level, message, context?): void

Defined in: console-sdk/src/config/types.ts:37

Receives diagnostic log lines (host file/remote logging).

"debug" | "info" | "warn" | "error"

string

Record<string, unknown>

void