UNPKG

@ahmedhegazee/nestjs-telescope

Version:

Advanced observability and monitoring solution for NestJS applications with ML-powered analytics, enterprise features, and production-ready scaling

15 lines (14 loc) 511 B
import { NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common'; import { Observable } from 'rxjs'; export interface RetryConfig { maxRetries: number; retryDelay: number; timeoutMs: number; retryCondition?: (error: any) => boolean; } export declare class ErrorRecoveryInterceptor implements NestInterceptor { private readonly logger; private readonly defaultConfig; intercept(context: ExecutionContext, next: CallHandler): Observable<any>; private shouldRetry; }