openinference  by Arize-ai

OpenTelemetry instrumentation for AI observability

Created 1 year ago
598 stars

Top 54.6% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

OpenInference provides a specification and instrumentation libraries to enable observability for AI applications, specifically focusing on Large Language Models (LLMs). It complements OpenTelemetry by offering detailed tracing for LLM interactions, vector store lookups, and tool usage, benefiting AI developers and ML engineers seeking to monitor and debug their AI systems.

How It Works

OpenInference defines a set of semantic conventions for AI observability, allowing for standardized tracing data. It then provides language-specific instrumentation packages that automatically capture relevant telemetry from popular AI SDKs and frameworks. This approach ensures that LLM application workflows, including model calls, data retrieval, and tool integrations, are traceable within an OpenTelemetry-compatible ecosystem.

Quick Start & Requirements

  • Install core libraries: pip install openinference-semantic-conventions openinference-instrumentation-openai
  • Requires Python 3.7+ and an OpenTelemetry-compatible backend (e.g., Arize Phoenix, Jaeger, Prometheus).
  • Examples are available for various SDKs and frameworks like OpenAI, LangChain, LlamaIndex, and DSPy.

Highlighted Details

  • Supports a wide range of Python and JavaScript AI frameworks including OpenAI, LangChain, LlamaIndex, DSPy, MistralAI, Anthropic, and more.
  • Natively supported by Arize Phoenix but compatible with any OpenTelemetry collector.
  • Specification is transport and file-format agnostic, designed for integration with JSON, ProtoBuf, and DataFrames.
  • Offers examples ranging from beginner-level SDK integrations to intermediate-level RAG applications with Next.js and FastAPI.

Maintenance & Community

  • Community channels include Slack (#phoenix-support) and X (formerly Twitter).
  • Roadmap is available for future development insights.
  • Bug reporting via GitHub Issues.

Licensing & Compatibility

  • The project appears to be Apache 2.0 licensed, allowing for commercial use and integration with closed-source applications.

Limitations & Caveats

  • While compatible with any OpenTelemetry backend, native integration is highlighted with Arize Phoenix. The full breadth of compatibility with all OpenTelemetry backends may require further investigation.
Health Check
Last Commit

21 hours ago

Responsiveness

1 day

Pull Requests (30d)
82
Issues (30d)
48
Star History
49 stars in the last 30 days

Explore Similar Projects

Starred by Gregor Zunic Gregor Zunic(Cofounder of Browser Use), Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), and
14 more.

openllmetry by traceloop

0.4%
6k
Open-source observability SDK for LLM applications
Created 2 years ago
Updated 14 hours ago
Starred by Luis Capelo Luis Capelo(Cofounder of Lightning AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
6 more.

opik by comet-ml

1.7%
14k
Open-source LLM evaluation framework for RAG, agents, and more
Created 2 years ago
Updated 14 hours ago
Feedback? Help us improve.