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.
Methods
Section titled “Methods”event()?
Section titled “event()?”
optionalevent(event):void
Defined in: console-sdk/src/config/types.ts:35
Receives one typed telemetry event per occurrence.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
log()?
Section titled “log()?”
optionallog(level,message,context?):void
Defined in: console-sdk/src/config/types.ts:37
Receives diagnostic log lines (host file/remote logging).
Parameters
Section titled “Parameters”"debug" | "info" | "warn" | "error"
message
Section titled “message”string
context?
Section titled “context?”Record<string, unknown>
Returns
Section titled “Returns”void