UNPKG

@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.

21 lines 1.07 kB
export declare const OTEL_BAGGAGE_SPAN_ATTRIBUTE_KEYS = "OTEL_BAGGAGE_SPAN_ATTRIBUTE_KEYS"; export type Mutable<T> = { -readonly [P in keyof T]: T[P]; }; export declare const getNodeVersion: () => number; export declare const isAgentObservabilityEnabled: () => boolean; export declare const isAgenticInstrumentationOptIn: () => boolean; /** * Get AWS region from environment or boto3 session. * Returns the AWS region in the following priority order: * 1. AWS_REGION environment variable * 2. AWS_DEFAULT_REGION environment variable * 3. undefined if no region can be determined */ export declare const getAwsRegionFromEnvironment: () => string | undefined; export declare const parseOtelBaggageKeysEnvVar: () => Set<string>; export declare const isInstrumentationDisabled: (shortName: string) => boolean; export declare const detectConflictingInstrumentation: (shortName: string) => string | undefined; export declare const checkDigits: (str: string) => boolean; export declare const isAccountId: (input: string) => boolean; //# sourceMappingURL=utils.d.ts.map