Skip to main content

Type Alias: TelemetryLog

type TelemetryLog = (name: string, payload?: Record<string, unknown>, level?: TelemetryLevel) => void;

Defined in: telemetry.ts:28

A telemetry emitter. Supply one to ServiceManager to receive the framework's own records; every service then reaches the same emitter through logEvent.

Implementations must not throw: a record is a side channel, and a failure to report must never become a failure of the thing being reported on.

Parameters

ParameterType
namestring
payload?Record<string, unknown>
level?TelemetryLevel

Returns

void