openlit
Version:
OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects
17 lines (16 loc) • 720 B
TypeScript
import { InstrumentationBase, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
export interface LangChainInstrumentationConfig extends InstrumentationConfig {
}
export default class OpenlitLangChainInstrumentation extends InstrumentationBase {
private _callbackManager;
private _ritmHook;
constructor(config?: LangChainInstrumentationConfig);
protected init(): void | InstrumentationModuleDefinition | InstrumentationModuleDefinition[];
enable(): void;
disable(): void;
manualPatch(callbacksManagerModule: any): void;
private _patchFromCache;
private _applyPatch;
private _unpatch;
}