@greguintow/nestjs-sentry
Version:
Provides an injectable sentry.io client to provide enterprise logging nestjs modules
16 lines (15 loc) • 758 B
TypeScript
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: any): void;
private captureRpcException;
private captureWsException;
private shouldReport;
}