--- id: openlit version: "1.45.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # openlit — OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications and GPUs, facilitating the integration of observability into your GenAI-driven projects License: permissive · Maintenance: active · Downloads: 412.3K/mo ## 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 above — 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 pip install openlit uv add openlit poetry add openlit ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 412.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags llm monitoring and observability, opentelemetry instrumentation for ai, llm tracing and metrics, ai application observability, generative ai monitoring, vector database tracing, gpu monitoring framework, llm-observability, opentelemetry, auto-instrumentation [View on SkillFed](https://skillfed.io/packages/openlit) · [View on PyPI](https://pypi.org/project/openlit/)