Skip to main content

SentryService

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