Skip to content

SentrySink

Defined in: observability/src/errors/sentry-sink.ts:24

Error tracking + performance (Sentry).

new SentrySink(): SentrySink

SentrySink

captureException(err): void

Defined in: observability/src/errors/sentry-sink.ts:48

Reports err to Sentry.

unknown

void

ErrorSink.captureException


endSession(): void

Defined in: observability/src/errors/sentry-sink.ts:53

Ends the Sentry session.

void

ErrorSink.endSession


flush(): Promise<void>

Defined in: observability/src/errors/sentry-sink.ts:58

Closes the Sentry client, waiting up to two seconds for pending events to send.

Promise<void>

ErrorSink.flush


init(ctx): void

Defined in: observability/src/errors/sentry-sink.ts:26

Initialises Sentry with the DSN, release and environment, starts a session and applies ctx.tags; events are scrubbed by scrubError and every trace is sampled.

string

string

string

Record<string, string>

void

ErrorSink.init


startSpan(name): CommandSpan

Defined in: observability/src/errors/sentry-sink.ts:38

Start a command span. Returns undefined for a no-op sink.

string

CommandSpan

ErrorSink.startSpan