ErrorSink
Defined in: observability/src/core/sinks.ts:19
Error tracking + performance (Sentry).
Methods
Section titled “Methods”captureException()
Section titled “captureException()”captureException(
err):void
Defined in: observability/src/core/sinks.ts:28
Reports an error (or any thrown value) to the tracker.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
endSession()
Section titled “endSession()”endSession():
void
Defined in: observability/src/core/sinks.ts:30
Ends the current session.
Returns
Section titled “Returns”void
flush()
Section titled “flush()”flush():
Promise<void>
Defined in: observability/src/core/sinks.ts:32
Resolves once pending events have been sent, or the sink’s timeout passes.
Returns
Section titled “Returns”Promise<void>
init()
Section titled “init()”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.
Parameters
Section titled “Parameters”string
environment
Section titled “environment”string
release
Section titled “release”string
Record<string, string>
Returns
Section titled “Returns”void
startSpan()
Section titled “startSpan()”startSpan(
name):CommandSpan|undefined
Defined in: observability/src/core/sinks.ts:26
Start a command span. Returns undefined for a no-op sink.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”CommandSpan | undefined