UNPKG

openlit

Version:

OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects

23 lines (22 loc) 1.29 kB
import { OpenlitConfigInterface, PricingObject } from './types'; export default class OpenlitConfig { static environment: OpenlitConfigInterface['environment']; static applicationName: OpenlitConfigInterface['applicationName']; static pricingInfo: PricingObject; static tracer: OpenlitConfigInterface['tracer']; static otlpEndpoint?: OpenlitConfigInterface['otlpEndpoint']; static otlpHeaders?: OpenlitConfigInterface['otlpHeaders']; static disableBatch?: OpenlitConfigInterface['disableBatch']; static captureMessageContent?: OpenlitConfigInterface['captureMessageContent']; static pricingJson?: OpenlitConfigInterface['pricingJson']; static disableMetrics?: boolean; static disableEvents?: boolean; static maxContentLength?: number | null; static customSpanAttributes?: Record<string, string> | null; static updateConfig({ environment, applicationName, tracer, otlpEndpoint, otlpHeaders, disableBatch, captureMessageContent, pricingJson, disableMetrics, disableEvents, maxContentLength, customSpanAttributes, }: Partial<OpenlitConfigInterface> & { disableMetrics?: boolean; disableEvents?: boolean; maxContentLength?: number | null; customSpanAttributes?: Record<string, string> | null; }): void; }