Skip to content

NoopErrorSink

Defined in: observability/src/core/sinks.ts:50

The disabled path made explicit — one shared no-op instead of a scatter of if (!enabled) return guards. Install it when telemetry is opted out or no credentials resolve.

new NoopErrorSink(): NoopErrorSink

NoopErrorSink

captureException(_err): void

Defined in: observability/src/core/sinks.ts:58

Does nothing.

unknown

void

ErrorSink.captureException


endSession(): void

Defined in: observability/src/core/sinks.ts:60

Does nothing.

void

ErrorSink.endSession


flush(): Promise<void>

Defined in: observability/src/core/sinks.ts:62

Resolves immediately.

Promise<void>

ErrorSink.flush


init(_ctx): void

Defined in: observability/src/core/sinks.ts:52

Does nothing.

string

string

string

Record<string, string>

void

ErrorSink.init


startSpan(_name): CommandSpan | undefined

Defined in: observability/src/core/sinks.ts:54

Returns undefined: there is no span.

string

CommandSpan | undefined

ErrorSink.startSpan