Observability
Instrument your code with OpenTelemetry to capture traces, logs, and metrics for every LLM call, agent step, and tool use.
Observability
Getting Started
LiteLLM provides a unified interface for multiple LLM providers, enabling seamless switching between OpenAI, Anthropic, Cohere, and 100+ other providers. Tracing LiteLLM with Orq.ai gives you comprehensive insights into provider performance, cost optimization, routing decisions, and API reliability across your multi-provider setup.Prerequisites
Before you begin, ensure you have:- An Orq.ai account and API Key
- LiteLLM installed in the project
- Python 3.8+
- API keys for the LLM providers (OpenAI, Anthropic, Cohere, etc.)
Install Dependencies
- Via LiteLLM Proxy Server
- Standalone Scripts
Configure Orq.ai
Set the following environment variables to connect to the Orq.ai OpenTelemetry collector:Integrations
- Via LiteLLM Proxy Server
- Standalone Scripts
All LiteLLM calls will be automatically instrumented and exported to Orq.ai through the OTLP exporter. For more details, see Traces.
Examples
Basic Multi-Provider Usage- Via LiteLLM Proxy Server
- Standalone Scripts
- Via LiteLLM Proxy Server
- Standalone Scripts
View Traces
Head to the Traces tab to view LiteLLM traces in the AI Studio.
Evaluations & Experiments
Once your agents are running, use Evaluatorq to score outputs across a dataset and Experiments to compare configurations side-by-side.Run Evaluations with Evaluatorq
Run parallel evaluations across your agents and compare results.
Run Experiments via the API
Compare agent configurations and view results in the AI Studio.