openlit
Version:
OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects
13 lines (12 loc) • 675 B
TypeScript
import { InstrumentationBase, InstrumentationModuleDefinition } from '@opentelemetry/instrumentation';
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
import Cohere from 'cohere-ai';
export interface CohereInstrumentationConfig extends InstrumentationConfig {
}
export default class OpenlitCohereInstrumentation extends InstrumentationBase {
constructor(config?: CohereInstrumentationConfig);
protected init(): void | InstrumentationModuleDefinition | InstrumentationModuleDefinition[];
manualPatch(cohere: any): void;
protected _patch(moduleExports: typeof Cohere): void;
protected _unpatch(moduleExports: typeof Cohere): void;
}