UNPKG

nestjs-otel

Version:
9 lines (8 loc) 434 B
import { type ExecutionContext } from "@nestjs/common"; export declare const currentSpanParamFactory: (_data: unknown, _ctx: ExecutionContext) => import("@opentelemetry/api").Span | undefined; /** * Decorator to retrieve the current OpenTelemetry Span from the active context. * * @returns The current Span or undefined if no span is active. */ export declare const CurrentSpan: (...dataOrPipes: unknown[]) => ParameterDecorator;