UNPKG

nestjs-otel

Version:
11 lines (10 loc) 716 B
import { type ExecutionContext } from "@nestjs/common"; export declare const baggageParamFactory: (key: string | undefined, _ctx: ExecutionContext) => string | import("@opentelemetry/api").Baggage | undefined; /** * Decorator to retrieve OpenTelemetry Baggage from the active context. * * @param key (Optional) The specific baggage key to retrieve. * If provided, returns the value (string) of that key. * If not provided, returns the entire Baggage object. */ export declare const Baggage: (...dataOrPipes: (string | import("@nestjs/common").PipeTransform<any, any> | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>> | undefined)[]) => ParameterDecorator;