nightingale-monorepo
    Preparing search index...

    Interface SentryRequiredMethods

    interface SentryRequiredMethods {
        addBreadcrumb: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void;
        captureException: (
            exception: unknown,
            hint?: ExclusiveEventHintOrCaptureContext,
        ) => string;
        captureMessage: (
            message: string,
            captureContext?: SeverityLevel | CaptureContext,
        ) => string;
    }
    Index

    Properties

    addBreadcrumb: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void

    Type Declaration

      • (breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void
      • Records a new breadcrumb which will be attached to future events.

        Breadcrumbs will be added to subsequent events to provide more context on user's actions prior to an error or crash.

        Parameters

        • breadcrumb: Breadcrumb
        • Optionalhint: BreadcrumbHint

        Returns void

    captureException: (
        exception: unknown,
        hint?: ExclusiveEventHintOrCaptureContext,
    ) => string

    Type Declaration

      • (exception: unknown, hint?: ExclusiveEventHintOrCaptureContext): string
      • Captures an exception event and sends it to Sentry.

        Parameters

        • exception: unknown

          The exception to capture.

        • Optionalhint: ExclusiveEventHintOrCaptureContext

          Optional additional data to attach to the Sentry event.

        Returns string

        the id of the captured Sentry event.

    captureMessage: (
        message: string,
        captureContext?: SeverityLevel | CaptureContext,
    ) => string

    Type Declaration

      • (message: string, captureContext?: SeverityLevel | CaptureContext): string
      • Captures a message event and sends it to Sentry.

        Parameters

        • message: string

          The message to send to Sentry.

        • OptionalcaptureContext: SeverityLevel | CaptureContext

          Define the level of the message or pass in additional data to attach to the message.

        Returns string

        the id of the captured message.