UNPKG

@zerosuxx/opentelemetry-nestjs

Version:

OpenTelemetry module for Nestjs with auto instrumentation and resource detection. Initially forked from https://github.com/overbit/opentelemetry-nestjs.git

10 lines (9 loc) 424 B
import { SpanKind } from '@opentelemetry/api'; import { TraceWrapperOptions } from './TraceWrapper.types'; export declare class TraceWrapper { static trace<T>(instance: T, options?: TraceWrapperOptions): T; static wrap(prototype: Record<any, any>, traceName: string, attributes?: {}, kind?: SpanKind): Record<any, any>; private static reDecorate; private static recordException; private static affect; }