SentrySink
Defined in: observability/src/errors/sentry-sink.ts:24
Error tracking + performance (Sentry).
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SentrySink():
SentrySink
Returns
Section titled “Returns”SentrySink
Methods
Section titled “Methods”captureException()
Section titled “captureException()”captureException(
err):void
Defined in: observability/src/errors/sentry-sink.ts:48
Reports err to Sentry.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”endSession()
Section titled “endSession()”endSession():
void
Defined in: observability/src/errors/sentry-sink.ts:53
Ends the Sentry session.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”flush()
Section titled “flush()”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.
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”init()
Section titled “init()”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.
Parameters
Section titled “Parameters”string
environment
Section titled “environment”string
release
Section titled “release”string
Record<string, string>
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”startSpan()
Section titled “startSpan()”startSpan(
name):CommandSpan
Defined in: observability/src/errors/sentry-sink.ts:38
Start a command span. Returns undefined for a no-op sink.
Parameters
Section titled “Parameters”string