otel-nestjs-instrumentation
Version:
Comprehensive OpenTelemetry instrumentation for NestJS applications - SQS, Kafka, HTTP/2, cron jobs and custom protocols
8 lines (7 loc) • 386 B
TypeScript
import { ExecutionContext } from '@nestjs/common';
export declare const otelInstrumentation: {
getCurrentTransactionId(): string | undefined;
create(transactionName: string, context: ExecutionContext, effectiveType?: "http" | "rpc"): string | undefined;
addAttributes(attributes: Record<string, string | number | boolean>): void;
recordException(error: Error): void;
};