Skip to content

ErrorSink

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

Error tracking + performance (Sentry).

captureException(err): void

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

Reports an error (or any thrown value) to the tracker.

unknown

void


endSession(): void

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

Ends the current session.

void


flush(): Promise<void>

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

Resolves once pending events have been sent, or the sink’s timeout passes.

Promise<void>


init(ctx): void

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

Initialises the tracker with the resolved DSN, release, environment and tags applied to every event. environment is a free name: "ci" and "local" for a CLI, "development", "staging" or "production" for an app.

string

string

string

Record<string, string>

void


startSpan(name): CommandSpan | undefined

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

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

string

CommandSpan | undefined