@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.
19 lines • 1.05 kB
TypeScript
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { OpenAIAgentsInstrumentationConfig } from './types';
import { OpenTelemetryTracingProcessor } from './tracing-processor';
export declare const INSTRUMENTATION_NAME = "@aws/aws-distro-opentelemetry-instrumentation-openai-agents";
export declare const INSTRUMENTATION_SHORT_NAME = "aws_openai_agents";
export declare class OpenAIAgentsInstrumentation extends InstrumentationBase<OpenAIAgentsInstrumentationConfig> {
_processor?: OpenTelemetryTracingProcessor;
private _patchedProvider;
constructor(config?: OpenAIAgentsInstrumentationConfig);
setConfig(config?: OpenAIAgentsInstrumentationConfig): void;
enable(): void;
_updateMetricInstruments(): void;
protected init(): InstrumentationNodeModuleDefinition[];
private _wrapSdkTraceProvider;
private _wrapCreateSpansWithOtelContext;
private _unwrapCreateSpansWithOtelContext;
private _unpatch;
}
//# sourceMappingURL=instrumentation.d.ts.map