https://github.com/traceloop/openllmetry
Open-source observability for your GenAI or LLM application, based on OpenTelemetry
https://github.com/traceloop/openllmetry
artifical-intelligence datascience generative-ai good-first-issue good-first-issues help-wanted llm llmops metrics ml model-monitoring monitoring observability open-source open-telemetry opentelemetry opentelemetry-python python
Last synced: 5 days ago
JSON representation
Open-source observability for your GenAI or LLM application, based on OpenTelemetry
- Host: GitHub
- URL: https://github.com/traceloop/openllmetry
- Owner: traceloop
- License: apache-2.0
- Created: 2023-09-02T14:42:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-17T15:41:03.000Z (5 months ago)
- Last Synced: 2025-11-17T17:26:57.796Z (5 months ago)
- Topics: artifical-intelligence, datascience, generative-ai, good-first-issue, good-first-issues, help-wanted, llm, llmops, metrics, ml, model-monitoring, monitoring, observability, open-source, open-telemetry, opentelemetry, opentelemetry-python, python
- Language: Python
- Homepage: https://www.traceloop.com/openllmetry
- Size: 41.5 MB
- Stars: 6,594
- Watchers: 18
- Forks: 827
- Open Issues: 297
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
- Governance: GOVERNANCE.md
- Maintainers: MAINTAINERS.md
Awesome Lists containing this project
- awesome-observability - OpenLLMetry - Open-source observability for your LLM application, based on OpenTelemetry. (3. Collect / Metrics)
- awesome-langchain - Openllmetry - source observability for your LLM application, based on OpenTelemetry  (Tools / Platforms)
- StarryDivineSky - traceloop/openllmetry
- Awesome-LLM-RAG-Application - openllmetry
- awesome-local-llm - openllmetry - an open-source observability for your LLM application, based on OpenTelemetry (Tools / Testing, Evaluation and Observability)
- awesome-llmops - Traceloop OpenLLMetry - based observability and monitoring for LLM and agents workflows. |  (Security / Observability)
- awesome-langchain-zh - Openllmetry
- awesome-production-machine-learning - OpenLLMetry - OpenLLMetry provides developers with deep visibility into Large Language Model applications through performance monitoring, execution tracing, and debugging capabilities. (Evaluation and Monitoring)
- llmops - Traceloop - OpenTelemetry for LLMs (What's New / ๐ Recently Added (January 2026))
- awesome-opensource-ai - OpenLLMetry (Traceloop) - Open-source observability for GenAI/LLM applications based on OpenTelemetry with 25+ integration backends. (๐ Contents / ๐ 8. MLOps / LLMOps & Production)
- awesome-nlp-llm-spanish-espa-ol - Openllmetry
- Awesome-LLMOps - OpenLLMetry - source observability for your LLM application, based on OpenTelemetry.    (Runtime / Observation)
- awesome-ai-eval - **OpenLLMetry** - OpenTelemetry instrumentation for LLM traces that feed any backend or custom eval logic. (Platforms / Open Source Platforms)
- awesome-llm-tools - Openllmetry - source observability for LLM applications based on OpenTelemetry |  | Apache-2.0 | (12. Miscellaneous / Data & Alignment Tools)
- awesome-agent-cortex - OpenLLMetry - OpenTelemetry-based observability for LLM applications. (Agent Observability and Testing / Benchmark Reality Check (real-world tool use))
- awesome-agent-collaborate-tools - Traceloop / OpenLLMetry - OpenTelemetry-based LLM observability. Automatic instrumentation for LangChain, CrewAI, AutoGen, and 20+ frameworks. Sends traces to any OTel-compatible backend (Datadog, Grafana, etc.). (Observability & Debugging)
- awesome-harness-engineering - traceloop/openllmetry
- awesome-rag - OpenLLMetry - Open-source observability for your LLM application, based on OpenTelemetry (Performance, Cost & Observability / RAG Benchmark 2024)
README
Open-source observability for your LLM application
Get started ยป
Slack |
Docs |
Website
**๐ New**:
Our semantic conventions are now part of OpenTelemetry! Join the [discussion](https://github.com/open-telemetry/community/blob/1c71595874e5d125ca92ec3b0e948c4325161c8a/projects/llm-semconv.md) and help us shape the future of LLM observability.
Looking for the JS/TS version? Check out [OpenLLMetry-JS](https://github.com/traceloop/openllmetry-js).
OpenLLMetry is a set of extensions built on top of [OpenTelemetry](https://opentelemetry.io/) that gives you complete observability over your LLM application. Because it uses OpenTelemetry under the hood, [it can be connected to your existing observability solutions](https://www.traceloop.com/docs/openllmetry/integrations/introduction) - Datadog, Honeycomb, and others.
It's built and maintained by Traceloop under the Apache 2.0 license.
The repo contains standard OpenTelemetry instrumentations for LLM providers and Vector DBs, as well as a Traceloop SDK that makes it easy to get started with OpenLLMetry, while still outputting standard OpenTelemetry data that can be connected to your observability stack.
If you already have OpenTelemetry instrumented, you can just add any of our instrumentations directly.
## ๐ Getting Started
The easiest way to get started is to use our SDK.
For a complete guide, go to our [docs](https://traceloop.com/docs/openllmetry/getting-started-python).
Install the SDK:
```bash
pip install traceloop-sdk
```
Then, to start instrumenting your code, just add this line to your code:
```python
from traceloop.sdk import Traceloop
Traceloop.init()
```
That's it. You're now tracing your code with OpenLLMetry!
If you're running this locally, you may want to disable batch sending, so you can see the traces immediately:
```python
Traceloop.init(disable_batch=True)
```
## โซ Supported (and tested) destinations
- โ
[Traceloop](https://www.traceloop.com/docs/openllmetry/integrations/traceloop)
- โ
[Axiom](https://www.traceloop.com/docs/openllmetry/integrations/axiom)
- โ
[Azure Application Insights](https://www.traceloop.com/docs/openllmetry/integrations/azure)
- โ
[Braintrust](https://www.traceloop.com/docs/openllmetry/integrations/braintrust)
- โ
[Dash0](https://www.traceloop.com/docs/openllmetry/integrations/dash0)
- โ
[Datadog](https://www.traceloop.com/docs/openllmetry/integrations/datadog)
- โ
[Dynatrace](https://www.traceloop.com/docs/openllmetry/integrations/dynatrace)
- โ
[Google Cloud](https://www.traceloop.com/docs/openllmetry/integrations/gcp)
- โ
[Grafana](https://www.traceloop.com/docs/openllmetry/integrations/grafana)
- โ
[Highlight](https://www.traceloop.com/docs/openllmetry/integrations/highlight)
- โ
[Honeycomb](https://www.traceloop.com/docs/openllmetry/integrations/honeycomb)
- โ
[HyperDX](https://www.traceloop.com/docs/openllmetry/integrations/hyperdx)
- โ
[IBM Instana](https://www.traceloop.com/docs/openllmetry/integrations/instana)
- โ
[KloudMate](https://www.traceloop.com/docs/openllmetry/integrations/kloudmate)
- โ
[Laminar](https://www.traceloop.com/docs/openllmetry/integrations/laminar)
- โ
[New Relic](https://www.traceloop.com/docs/openllmetry/integrations/newrelic)
- โ
[OpenTelemetry Collector](https://www.traceloop.com/docs/openllmetry/integrations/otel-collector)
- โ
[Oracle Cloud](https://www.traceloop.com/docs/openllmetry/integrations/oraclecloud)
- โ
[Scorecard](https://www.traceloop.com/docs/openllmetry/integrations/scorecard)
- โ
[Service Now Cloud Observability](https://www.traceloop.com/docs/openllmetry/integrations/service-now)
- โ
[SigNoz](https://www.traceloop.com/docs/openllmetry/integrations/signoz)
- โ
[Sentry](https://www.traceloop.com/docs/openllmetry/integrations/sentry)
- โ
[Splunk](https://www.traceloop.com/docs/openllmetry/integrations/splunk)
- โ
[Tencent Cloud](https://www.traceloop.com/docs/openllmetry/integrations/tencent)
See [our docs](https://traceloop.com/docs/openllmetry/integrations/exporting) for instructions on connecting to each one.
## ๐ช What do we instrument?
OpenLLMetry can instrument everything that [OpenTelemetry already instruments](https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation) - so things like your DB, API calls, and more. On top of that, we built a set of custom extensions that instrument things like your calls to OpenAI or Anthropic, or your Vector DB like Chroma, Pinecone, Qdrant or Weaviate.
- โ
[Aleph Alpha](https://www.aleph-alpha.com/)
- โ
[Anthropic](https://www.anthropic.com/)
- โ
[Bedrock (AWS)](https://aws.amazon.com/bedrock/)
- โ
[Cohere](https://cohere.com/)
- โ
[Google Generative AI (Gemini)](https://ai.google/)
- โ
[Groq](https://groq.com/)
- โ
[HuggingFace](https://huggingface.co/)
- โ
[IBM Watsonx AI](https://www.ibm.com/watsonx)
- โ
[Mistral AI](https://mistral.ai/)
- โ
[Ollama](https://ollama.com/)
- โ
[OpenAI / Azure OpenAI](https://openai.com/)
- โ
[Replicate](https://replicate.com/)
- โ
[SageMaker (AWS)](https://aws.amazon.com/sagemaker/)
- โ
[Together AI](https://together.xyz/)
- โ
[Vertex AI (GCP)](https://cloud.google.com/vertex-ai)
- โ
[WRITER](https://writer.com/)
### Vector DBs
- โ
[Chroma](https://www.trychroma.com/)
- โ
[LanceDB](https://lancedb.com/)
- โ
[Marqo](https://marqo.ai/)
- โ
[Milvus](https://milvus.io/)
- โ
[Pinecone](https://www.pinecone.io/)
- โ
[Qdrant](https://qdrant.tech/)
- โ
[Weaviate](https://weaviate.io/)
### Frameworks
- โ
[Agno](https://github.com/agno-agi/agno)
- โ
[AWS Strands](https://strandsagents.com/) (built-in OTEL support)
- โ
[CrewAI](https://docs.crewai.com/introduction)
- โ
[Haystack](https://haystack.deepset.ai/integrations/traceloop)
- โ
[LangChain](https://python.langchain.com/docs/introduction/)
- โ
[Langflow](https://docs.langflow.org/)
- โ
[LangGraph](https://langchain-ai.github.io/langgraph/concepts/why-langgraph/)
- โ
[LiteLLM](https://docs.litellm.ai/docs/observability/opentelemetry_integration)
- โ
[LlamaIndex](https://docs.llamaindex.ai/en/stable/module_guides/observability/observability.html#openllmetry)
- โ
[OpenAI Agents](https://openai.github.io/openai-agents-python/)
### Protocol
- โ
[MCP](https://modelcontextprotocol.io/)
## ๐ Telemetry
We no longer log or collect any telemetry in the SDK or in the instrumentations. Make sure to bump to v0.49.2 and above.
### Why we collect telemetry
- The primary purpose is to detect exceptions within instrumentations. Since LLM providers frequently update their APIs, this helps us quickly identify and fix any breaking changes.
- We only collect anonymous data, with no personally identifiable information. You can view exactly what data we collect in our [Privacy documentation](https://www.traceloop.com/docs/openllmetry/privacy/telemetry).
- Telemetry is only collected in the SDK. If you use the instrumentations directly without the SDK, no telemetry is collected.
## ๐ฑ Contributing
Whether big or small, we love contributions โค๏ธ Check out our guide to see how to [get started](https://traceloop.com/docs/openllmetry/contributing/overview).
Not sure where to get started? You can:
- [Book a free pairing session with one of our teammates](mailto:nir@traceloop.com?subject=Pairing%20session&body=I'd%20like%20to%20do%20a%20pairing%20session!)!
- Join our Slack, and ask us any questions there.
## ๐ Community & Support
- [Slack](https://traceloop.com/slack) (For live discussion with the community and the Traceloop team)
- [GitHub Discussions](https://github.com/traceloop/openllmetry/discussions) (For help with building and deeper conversations about features)
- [GitHub Issues](https://github.com/traceloop/openllmetry/issues) (For any bugs and errors you encounter using OpenLLMetry)
- [Twitter](https://twitter.com/traceloopdev) (Get news fast)
## ๐ Special Thanks
To @patrickdebois, who [suggested the great name](https://x.com/patrickdebois/status/1695518950715473991?s=46&t=zn2SOuJcSVq-Pe2Ysevzkg) we're now using for this repo!
## ๐ซ Contributors