otel-nestjs-instrumentation
Version:
Comprehensive OpenTelemetry instrumentation for NestJS applications - SQS, Kafka, HTTP/2, cron jobs and custom protocols
12 lines (11 loc) • 498 B
TypeScript
import { NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common';
import { InternalContext } from './internal';
import EventEmitter from 'events';
export declare class OtelInterceptor implements NestInterceptor {
private readonly emitter;
private readonly context;
constructor(emitter: EventEmitter, context: InternalContext);
intercept(context: ExecutionContext, next: CallHandler): import("rxjs").Observable<any>;
private finishSpan;
private recordError;
}