UNPKG

enhanced-adot-node-autoinstrumentation

Version:

This package provides Amazon Web Services distribution of the OpenTelemetry Node Instrumentation, which allows for auto-instrumentation of NodeJS applications.

9 lines 676 B
import { Context as OtelContext, TextMapGetter } from '@opentelemetry/api'; import { Instrumentation } from '@opentelemetry/instrumentation'; import { APIGatewayProxyEventHeaders, Context } from 'aws-lambda'; export declare const traceContextEnvironmentKey = "_X_AMZN_TRACE_ID"; export declare const AWSXRAY_TRACE_ID_HEADER_CAPITALIZED = "X-Amzn-Trace-Id"; export declare const headerGetter: TextMapGetter<APIGatewayProxyEventHeaders>; export declare function applyInstrumentationPatches(instrumentations: Instrumentation[]): void; export declare const customExtractor: (event: any, _handlerContext: Context) => OtelContext; //# sourceMappingURL=instrumentation-patch.d.ts.map