Skip to main content

SentryService

Service for capturing errors and messages to Sentry.

Signature
class SentryService {    constructor(options: SentryPluginOptions)    captureException(exception: Error) => ;    captureMessage(message: string, captureContext?: CaptureContext) => ;    startSpan(context: StartSpanOptions) => ;}

constructor

method(options: SentryPluginOptions) => SentryService

captureException

method(exception: Error) =>

captureMessage

method(message: string, captureContext?: CaptureContext) =>

Captures a message

startSpan

method(context: StartSpanOptions) =>

Starts new span

Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page