UNPKG

@travelerdev/nestjs-sentry

Version:

Provides an injectable sentry.io client to provide enterprise logging of nestjs modules

17 lines 829 B
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common'; import { Observable } from 'rxjs'; import { Scope } from '@sentry/hub'; import { SentryService } from './sentry.service'; import { SentryInterceptorOptions } from './sentry.interfaces'; export declare class SentryInterceptor implements NestInterceptor { private readonly options?; protected readonly client: SentryService; constructor(options?: SentryInterceptorOptions | undefined); intercept(context: ExecutionContext, next: CallHandler): Observable<any>; protected captureException(context: ExecutionContext, scope: Scope, exception: unknown): void; private captureHttpException; private captureRpcException; private captureWsException; private shouldReport; } //# sourceMappingURL=sentry.interceptor.d.ts.map