Classdesc

This class provides a middleware service for Sentry.

Implements

Implements

  • NestMiddleware

Constructors

  • Parameters

    • adapterHost: HttpAdapterHost<AbstractHttpAdapter<any, any, any>>

    Returns default

Methods

  • Captures an exception in Sentry.

    Parameters

    • exception: any

      The exception to be captured.

    Returns void

    Method

  • Initializes Sentry client.

    Returns void

    Method

  • Sets user context in Sentry.

    Parameters

    • data: any

      The user data.

    Returns void

    Method

  • Middleware function for Sentry request handler and error handler.

    Parameters

    • req: any

      The request object.

    • res: any

      The response object.

    • next: (() => void)

      The next middleware function.

        • (): void
        • Returns void

    Returns void

    Method