openlit
OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications and GPUs, facilitating the integration of observability into your GenAI-driven projects
What it is and what it does
OpenLIT is an OpenTelemetry-native SDK that automatically instruments LLM applications, vector databases, and GPU operations to generate traces and metrics without code changes. It works by wrapping calls to LLM providers (OpenAI, Anthropic, Cohere, etc.), vector databases (ChromaDB, Pinecone, Qdrant, etc.), and AI frameworks (LangChain, LlamaIndex, Haystack, etc.), capturing request/response data, latency, token usage, and costs. The generated telemetry follows OpenTelemetry semantic conventions and can be exported to any OTLP-compatible backend.
The package is designed for developers building GenAI applications who need observability without modifying their application logic. It handles the complexity of instrumenting multiple LLM providers and frameworks through a single initialization call. The 26 runtime dependencies include the OpenTelemetry SDK, instrumentation modules for common web frameworks (FastAPI, Flask, Django, etc.), and client SDKs for major LLM and cloud providers (OpenAI, Anthropic, boto3). This breadth of dependencies means the package pulls in significant infrastructure but also ensures broad compatibility out of the box.
Use it for:
- Monitor token usage and costs across multiple LLM providers in a single application to track GenAI spending.
- Trace LLM request latency and errors through LangChain or LlamaIndex pipelines to debug slow or failing AI workflows.
- Instrument vector database queries (ChromaDB, Pinecone) to correlate retrieval performance with LLM response quality.
- Export GPU metrics (NVIDIA, AMD) alongside LLM traces to correlate compute resource usage with inference performance.
- Send LLM observability data to existing monitoring tools for unified monitoring of AI and traditional infrastructure.
- Track custom and fine-tuned model costs using custom pricing files for accurate budget forecasting.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
OpenLIT provides OpenTelemetry-native auto-instrumentation for monitoring LLM applications, vector databases, and GPU usage, sending traces and metrics to observability platforms.
Yes. OpenLIT is actively maintained, has low install friction, carries a permissive Apache-2.0 license, and solves a real problem—observability for LLM applications—with minimal code changes. The broad instrumentation coverage and OpenTelemetry-native design make it a practical choice for production GenAI monitoring. No known vulnerabilities as of 2026-08-14. Install if you need LLM observability and already use or plan to adopt OpenTelemetry.
Install
openlit on PyPI
pip
pip install openlituv
uv add openlitpoetry
poetry add openlitInstalling openlit
Before you install
Low friction installation with a pure Python wheel. Active maintenance (last commit 2026-08-14) and 2688 GitHub stars indicate ongoing development. The package carries 26 runtime dependencies spanning OpenTelemetry components, LLM SDKs, and web framework instrumentation, which are installed automatically.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for production deployments in most organizational contexts.
Quickstart
pip install openlit
import openlit
openlit.init()
# Your LLM code now auto-instrumented
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(model="gpt-4", messages=[...])
Requires an OpenTelemetry collector endpoint to send traces and metrics; without one, instrumentation runs but data is not exported.
Verify before relying
- Exact number of supported LLM providers, vector databases, and frameworks beyond those listed in the description.
- Whether custom pricing file support for fine-tuned models is fully documented and production-ready.
- Performance overhead of auto-instrumentation on latency-sensitive LLM applications.
- Compatibility with all listed OpenTelemetry instrumentation packages across different framework versions.
- Specific OTLP endpoint configuration and authentication requirements for different observability backends.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4.0.0,>=3.9.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 26 — anthropic, boto3, botocore, openai, opentelemetry-api, opentelemetry-exporter-otlp, opentelemetry-instrumentation, opentelemetry-instrumentation-aiohttp-client, opentelemetry-instrumentation-asgi, opentelemetry-instrumentation-django, opentelemetry-instrumentation-falcon, opentelemetry-instrumentation-fastapi, opentelemetry-instrumentation-flask, opentelemetry-instrumentation-httpx, opentelemetry-instrumentation-pyramid, opentelemetry-instrumentation-requests, opentelemetry-instrumentation-starlette, opentelemetry-instrumentation-tornado, opentelemetry-instrumentation-urllib, opentelemetry-instrumentation-urllib3, opentelemetry-sdk, opentelemetry-semantic-conventions, pydantic, requests, schedule, xmltodict |
| Maintenance | actively maintained — 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 412,347/month — #6,848 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openlit-1.45.0-py3-none-any.whl
Keywords: OpenTelemetry, otel, otlp, llm, tracing, openai, anthropic, claude, cohere, llm monitoring, observability, monitoring, gpt, Generative AI, chatGPT, gpu
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
aliyun-traceManually creates traces for LLM applications…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-vertexaiAutomatically captures traces of VertexAI API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-llamaindexAdds distributed tracing to LlamaIndex…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-openaiCaptures traces of OpenAI API calls (prompts,…
permissive · top 5,000 on PyPI
opentelemetry-semantic-conventions-aiProvides OpenTelemetry semantic conventions and…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-litellmAdds OpenTelemetry tracing to LiteLLM,…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-chromadbAdds distributed tracing to Chroma vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-groqAutomatically captures traces of Groq SDK API…
permissive · top 5,000 on PyPI
agentopsAgentOps provides observability and monitoring…
permissive · top 15,000 on PyPI
mlflow-skinnymlflow-skinny is a lightweight client library…
permissive · top 1,000 on PyPI