sentry-vir - v3.0.1
    Preparing search index...

    Function createSentryHandler

    • Creates a handler for Sentry events based on the given env.

      Type Parameters

      • T extends TransactionEvent | ErrorEvent

      Parameters

      • isDev: boolean

        If in dev, events won't be sent to Sentry. They will only be logged in the console.

      Returns (event: T, hint: EventHint) => null | T

        • (event: T, hint: EventHint): null | T
        • The actual function that gets called when handling Sentry events.

          Parameters

          • event: T

            The event from Sentry.

          • hint: EventHint

            The EventHint generated by Sentry.

          Returns null | T