openlit.init() once at startup, and all LLM calls your application makes are automatically traced with token counts, latency, cost, and model metadata.
Get started
1
Install OpenLIT
- Python
- TypeScript
2
Install your LLM provider SDK
Install the SDK for the provider you use. OpenLIT detects it automatically.
- Python
- TypeScript
3
Initialize OpenLIT in your application
Add
openlit.init() once at the top of your application entry point.- Python
- TypeScript
Supported LLM providers
Span attributes captured
Every LLM call trace includes the following attributes:Disabling specific providers
Pass a list of instrumentor keys to skip specific providers:AI framework integrations
Trace agent execution, tool calls, and chains in LangChain, CrewAI, and more
Configuration
Full reference for all openlit.init() parameters
Destinations
Send telemetry to Datadog, Grafana, New Relic, and other observability stacks
