UNPKG

otel-tools

Version:
8 lines 374 B
import { Tracer } from '@opentelemetry/api'; export interface TraceMethodOptions { tracer: Tracer; spanName?: string; } export declare function TraceMethod(options: TraceMethodOptions): MethodDecorator; export declare function traceMethod<F extends (...args: A) => any, A extends any[]>(options: TraceMethodOptions, fn: F): F; //# sourceMappingURL=decorator.d.ts.map