@traceloop/instrumentation-langchain
Version:
OpenTelemetry instrumentation for LangchainJS
13 lines • 460 B
TypeScript
import { InstrumentationConfig } from "@opentelemetry/instrumentation";
export interface LangChainInstrumentationConfig extends InstrumentationConfig {
/**
* Whether to log prompts, completions and embeddings on traces.
* @default true
*/
traceContent?: boolean;
/**
* A custom logger to log any exceptions that happen during span creation.
*/
exceptionLogger?: (e: Error) => void;
}
//# sourceMappingURL=types.d.ts.map