skillfed

openinference-semantic-conventions

OpenInference Semantic Conventions

openinference-semantic-conventions v0.1.32 8.5M downloads/30d#1,610 on PyPI1,147
Permissive license Apache-2.0 Active released

What it is and what it does

OpenInference Semantic Conventions is a specification library that standardizes how AI application traces—particularly LLM calls, vector store retrievals, and external tool invocations—are represented and labeled. It works alongside OpenTelemetry to provide a common vocabulary for observability across AI systems, enabling consistent tracing whether you use Arize Phoenix, Arize AX, or any other OpenTelemetry-compatible backend.

The package itself is a pure Python module with no external runtime dependencies, making it lightweight to integrate into instrumentation libraries and AI frameworks. It defines the attribute names, semantic meanings, and conventions that other OpenInference instrumentation packages (for LangChain, LlamaIndex, OpenAI, and others) use when emitting trace data. If you are building or using an AI application that needs observability, this package provides the foundational schema that ensures your traces are interpreted consistently across tools.

Use it for:

  • Standardize trace attributes when instrumenting LLM applications with OpenTelemetry for observability.
  • Ensure consistent semantic meaning of trace events across different AI frameworks and backends.
  • Build custom instrumentation libraries that emit traces following OpenInference conventions.
  • Integrate with Arize Phoenix or other OpenTelemetry backends using a common trace schema.
  • Document and enforce tracing standards for retrieval-augmented generation (RAG) and agent workflows.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Defines semantic conventions and standardized attributes for tracing AI applications, particularly LLM invocations, retrieval operations, and tool usage, for use with OpenTelemetry-compatible backends.

Yes, if you are building or instrumenting AI applications and need a shared semantic vocabulary for tracing. It is lightweight, actively maintained, and essential infrastructure for any project using OpenInference instrumentation libraries or OpenTelemetry with AI workloads. No security vulnerabilities and permissive licensing. Install it as a dependency of instrumentation packages rather than directly unless you are defining custom tracing logic.

Install

openinference-semantic-conventions on PyPI

pip

pip install openinference-semantic-conventions

uv

uv add openinference-semantic-conventions

poetry

poetry add openinference-semantic-conventions

Installing openinference-semantic-conventions

Before you install

Low friction; pure Python wheel with no runtime dependencies. Actively maintained with a release 7 days ago and 1147 repository stars.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions.

Quickstart

pip install openinference-semantic-conventions

from openinference_semantic_conventions import ...
# Import semantic convention constants for use in tracing instrumentation

Requires Python 3.10 or later (supports up to 3.14).

Verify before relying

  • Whether this package alone provides tracing without a separate instrumentation library or OpenTelemetry backend.
  • What specific semantic convention constants or classes are exported and how they are typically used in practice.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<3.15,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 7 days since the last release
Last repo commit
First released
Downloads 8,531,636/month — #1,610 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: openinference_semantic_conventions-0.1.32-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

llm tracing conventionsopentelemetry semantic standardsai application instrumentationllm observability schematracing attributes for ai appsopeninference specificationsvector store retrieval tracing
llm-observabilityopentelemetryai-tracing

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

openinference-instrumentation-langchain

Auto-instruments LangChain applications to…

permissive · top 5,000 on PyPI

openinference-instrumentation-openai

Auto-instruments OpenAI Python SDK calls to…

permissive · top 5,000 on PyPI

aliyun-semantic-conventions

Provides standardized semantic convention…

permissive · top 5,000 on PyPI

openinference-instrumentation-openai-agents

Auto-instruments OpenAI Agents SDK to emit…

permissive · top 5,000 on PyPI

openinference-instrumentation-claude-agent-sdk

Auto-instruments Claude Agent SDK calls to emit…

permissive · top 15,000 on PyPI

openinference-instrumentation-haystack

Auto-instruments Haystack LLM pipelines and…

permissive · top 15,000 on PyPI

openinference-instrumentation-litellm

Auto-instruments LiteLLM function calls…

permissive · top 15,000 on PyPI

openinference-instrumentation-google-genai

Automatically instruments Google GenAI SDK…

permissive · top 15,000 on PyPI

openinference-instrumentation-agno

Auto-instruments Agno Agent applications to…

permissive · top 15,000 on PyPI

openinference-instrumentation-portkey

Automatically instruments Portkey AI API calls…

permissive · top 15,000 on PyPI

Further reading