@aws/aws-distro-opentelemetry-node-autoinstrumentation
Version:
This package provides Amazon Web Services distribution of the OpenTelemetry Node Instrumentation, which allows for auto-instrumentation of NodeJS applications.
8 lines • 598 B
TypeScript
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 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