Skip to main content

OpenLIT Integration

OpenLIT is a universal OpenTelemetry bridge for LLM observability.

Setup

pip install openlit

Usage

from praisonai_tools.observability import obs

obs.init(provider="openlit")

with obs.trace("workflow"):
    # Your agent code
    pass

Configuration

OptionEnvironment VariableDescription
otlp_endpointOTEL_EXPORTER_OTLP_ENDPOINTOTLP endpoint (default: localhost:4318)
disable_batch-Disable batching
disable_metrics-Disable metrics