@traceloop/instrumentation-langchain
Version:
OpenTelemetry instrumentation for LangchainJS
14 lines • 671 B
TypeScript
import { InstrumentationBase, InstrumentationModuleDefinition } from "@opentelemetry/instrumentation";
import { LangChainInstrumentationConfig } from "./types";
export declare class LangChainInstrumentation extends InstrumentationBase {
protected _config: LangChainInstrumentationConfig;
constructor(config?: LangChainInstrumentationConfig);
manuallyInstrument({ callbackManagerModule, }: {
callbackManagerModule?: any;
}): void;
protected init(): InstrumentationModuleDefinition[];
private instrumentCallbackManagerDirectly;
private patchCallbackManager;
private _shouldSendPrompts;
}
//# sourceMappingURL=instrumentation.d.ts.map