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.

18 lines 977 B
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; import { VercelAIInstrumentationConfig } from './types'; export declare const INSTRUMENTATION_NAME = "@aws/aws-distro-opentelemetry-instrumentation-vercel-ai"; export declare const INSTRUMENTATION_SHORT_NAME = "aws_vercel_ai"; export declare class VercelAIInstrumentation extends InstrumentationBase<VercelAIInstrumentationConfig> { private static readonly FUNCTIONS_TO_PATCH; private _patchedExports; private _spanProcessorRegistered; constructor(config?: VercelAIInstrumentationConfig); setConfig(config?: VercelAIInstrumentationConfig): void; enable(): void; setTracerProvider(provider: any): void; protected init(): InstrumentationNodeModuleDefinition[]; private _enableTelemetryByDefaultWrapper; private _enableTelemetryByDefaultUnwrap; private _autoInjectTelemetryEnabled; } //# sourceMappingURL=instrumentation.d.ts.map