openinference-instrumentation-llama-index
OpenInference LlamaIndex Instrumentation
Decision gist · record as of 2026-08-14
Yes, if you use LlamaIndex and need observability. The package is actively maintained, has no known vulnerabilities, and integrates seamlessly with the OpenTelemetry ecosystem. Install it if you're building production LlamaIndex applications or debugging retrieval quality; skip it if you don't need tracing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; llama-index version compatibility varies (see documentation for version mapping).
- Low friction: pure Python wheel with 7 runtime dependencies already in the OpenTelemetry ecosystem.
- Active maintenance—released 7 days ago with 1147 GitHub stars and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license; safe for commercial and proprietary use with standard attribution requirements.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 1,147 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 368,879 downloads/mo, #7,187 on PyPI
Alternatives
Verify before relying
pip install openinference-instrumentation-llama-index
from openinference.instrumentation.llama_index import LlamaIndexInstrumentor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
tracer_provider = trace_sdk.TracerProvider()
tracer_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter("http://127.0.0.1:6006/v1/traces")))
LlamaIndexInstrumentor().instrument(tracer_provider=tracer_provider)- Whether the package works with all llama-index versions >=0.12.3 or only specific minor releases within that range.
- Performance overhead of instrumentation on large-scale LlamaIndex applications.
What it is and what it does
This package wraps LlamaIndex to automatically capture execution traces—function calls, embeddings, LLM queries, and retrieval steps—and exports them as OpenTelemetry spans. It integrates with the OpenInference semantic conventions to standardize trace structure, making traces compatible with observability platforms like Arize Phoenix and Arize AX. The instrumentation is transparent: you initialize it once with a tracer provider, then your existing LlamaIndex code generates traces without modification.
The package depends on OpenTelemetry's core APIs and instrumentation framework, plus OpenInference's semantic conventions and base instrumentation library. It's designed for developers who want visibility into LlamaIndex application behavior—debugging retrieval quality, monitoring LLM call patterns, or tracking end-to-end latency. Traces stay local by default (e.g., sent to a local Phoenix instance) unless you configure a remote collector.
Use it for
- Debug LlamaIndex retrieval and ranking to understand why queries return unexpected results.
- Monitor LLM token usage and latency across retrieval-augmented generation pipelines.
- Trace multi-step LlamaIndex workflows to identify performance bottlenecks.
- Audit LlamaIndex application behavior for compliance or quality assurance.
- Integrate LlamaIndex observability into a centralized OpenTelemetry collection pipeline.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use LlamaIndex and need observability.
The package is actively maintained, has no known vulnerabilities, and integrates seamlessly with the OpenTelemetry ecosystem. Install it if you're building production LlamaIndex applications or debugging retrieval quality; skip it if you don't need tracing.
Install
openinference-instrumentation-llama-index on PyPI
Before you install
Low friction: pure Python wheel with 7 runtime dependencies already in the OpenTelemetry ecosystem. Active maintenance—released 7 days ago with 1147 GitHub stars and no known vulnerabilities.
Requires Python 3.10 or later; llama-index version compatibility varies (see documentation for version mapping).
License in practice
Apache-2.0 permissive license; safe for commercial and proprietary use with standard attribution requirements.
Quickstart
pip install openinference-instrumentation-llama-index
from openinference.instrumentation.llama_index import LlamaIndexInstrumentor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
tracer_provider = trace_sdk.TracerProvider()
tracer_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter("http://127.0.0.1:6006/v1/traces")))
LlamaIndexInstrumentor().instrument(tracer_provider=tracer_provider)
Verify before relying
- Whether the package works with all llama-index versions >=0.12.3 or only specific minor releases within that range.
- Performance overhead of instrumentation on large-scale LlamaIndex applications.
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 | 7 packagesopeninference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionstyping-extensionswrapt |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 368,879 / month, #7,187 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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 |
Evidence: openinference_instrumentation_llama_index-4.4.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “llama-index tracing instrumentation”
- openinference-instrumentation-llama-indexAuto-instruments LlamaIndex applications to generate…
- opentelemetry-instrumentation-pymemcacheAdds OpenTelemetry tracing instrumentation to pymemcache client…
- opentelemetry-instrumentation-pymysqlAdds OpenTelemetry tracing instrumentation to PyMySQL database…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also openinference-instrumentation-agno · openinference-instrumentation-anthropic · openinference-instrumentation-litellm · openinference-instrumentation-haystack · openinference-instrumentation-dspy · openinference-instrumentation-google-genai · openinference-instrumentation-openai · llama-index-utils-workflow · openinference-instrumentation-pydantic-ai · arize-phoenix-otel