@ahmedhegazee/nestjs-telescope
Version:
Advanced observability and monitoring solution for NestJS applications with ML-powered analytics, enterprise features, and production-ready scaling
39 lines (38 loc) • 1.19 kB
TypeScript
export interface ExceptionWatcherConfig {
enabled: boolean;
priority?: number;
tags?: string[];
dependencies?: string[];
captureStackTrace: boolean;
enableSourceMaps: boolean;
maxStackTraceDepth: number;
enableUserContext: boolean;
enableRequestContext: boolean;
enableQueryContext: boolean;
groupSimilarErrors: boolean;
enableErrorClassification: boolean;
classifyByType: boolean;
classifyByMessage: boolean;
classifyByLocation: boolean;
excludeErrorTypes: string[];
excludeErrorMessages: string[];
sampleRate: number;
captureUnhandledRejections: boolean;
captureUncaughtExceptions: boolean;
maxContextSize: number;
captureHeaders: boolean;
captureBody: boolean;
captureParams: boolean;
captureQuery: boolean;
captureEnvironment: boolean;
enablePerformanceTracking: boolean;
correlateWithRequests: boolean;
correlateWithQueries: boolean;
enableRealTimeAlerts: boolean;
alertThresholds: {
errorRate: number;
criticalErrors: number;
timeWindow: number;
};
}
export declare const defaultExceptionWatcherConfig: ExceptionWatcherConfig;