opentelemetry-instrumentation-llamaindex
OpenTelemetry LlamaIndex instrumentation
Decision gist · record as of 2026-08-14
Yes, if you are building LlamaIndex applications and need observability. The package is actively maintained, has no security vulnerabilities, installs with low friction, and integrates cleanly with the OpenTelemetry ecosystem. Be aware that prompts and completions are logged by default—disable TRACELOOP_TRACE_CONTENT if handling sensitive data.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Requires an OpenTelemetry exporter and backend to be configured separately to actually send traces somewhere.
- Low friction installation with no compiled dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
last release 2026-08-10 (4 days) · last repo commit 2026-08-10 · 7,377 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,928,352 downloads/mo, #1,808 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-instrumentation-llamaindex
from opentelemetry.instrumentation.llamaindex import LlamaIndexInstrumentor
LlamaIndexInstrumentor().instrument()- Whether the instrumentation supports all LlamaIndex components or only a subset of the API surface.
- Performance overhead of tracing when TRACELOOP_TRACE_CONTENT is enabled versus disabled.
- Compatibility with specific OpenTelemetry exporters and backends.
What it is and what it does
This package integrates OpenTelemetry tracing into LlamaIndex applications, automatically capturing spans for LLM calls, embeddings, and other operations. It hooks into LlamaIndex to record detailed traces that flow through your observability stack, making it possible to see exactly what your application is doing at each step.
By default, the instrumentation logs prompts, completions, and embeddings as span attributes, giving you full visibility into your LLM application's behavior. This can be disabled by setting the TRACELOOP_TRACE_CONTENT environment variable to false if you need to protect sensitive user data or reduce trace size. The package requires Python 3.10 or later and depends on the core OpenTelemetry API and instrumentation libraries.
Use it for
- Debug LlamaIndex application behavior by tracing LLM calls and embeddings through your system.
- Send traces to an OpenTelemetry backend (Jaeger, Datadog, etc.) to monitor production LLM applications.
- Analyze latency and performance of LLM operations within a larger application.
- Audit and log prompts and completions for compliance or quality evaluation purposes.
- Correlate LLM calls with other application traces for end-to-end observability.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building LlamaIndex applications and need observability.
The package is actively maintained, has no security vulnerabilities, installs with low friction, and integrates cleanly with the OpenTelemetry ecosystem. Be aware that prompts and completions are logged by default—disable TRACELOOP_TRACE_CONTENT if handling sensitive data.
Install
opentelemetry-instrumentation-llamaindex on PyPI
Before you install
Low friction installation with no compiled dependencies. Actively maintained with a recent release (4 days old) and steady upstream activity. Depends on standard OpenTelemetry packages.
Requires Python 3.10 or later. Requires an OpenTelemetry exporter and backend to be configured separately to actually send traces somewhere.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install opentelemetry-instrumentation-llamaindex
from opentelemetry.instrumentation.llamaindex import LlamaIndexInstrumentor
LlamaIndexInstrumentor().instrument()
Verify before relying
- Whether the instrumentation supports all LlamaIndex components or only a subset of the API surface.
- Performance overhead of tracing when TRACELOOP_TRACE_CONTENT is enabled versus disabled.
- Compatibility with specific OpenTelemetry exporters and backends.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesinflectionopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventions-aiopentelemetry-semantic-conventions |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,928,352 / month, #1,808 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: opentelemetry_instrumentation_llamaindex-0.62.3-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 › “opentelemetry llamaindex tracing”
- opentelemetry-instrumentation-llamaindexAdds distributed tracing to LlamaIndex applications using…
- openinference-instrumentation-llama-indexAuto-instruments LlamaIndex applications to generate…
- traceloop-sdkTraceloop SDK instruments LLM applications to capture execution…
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 llama-index-instrumentation · opentelemetry-instrumentation-ollama · raindrop-ai · openlit · opentelemetry-instrumentation-langchain · opentelemetry-instrumentation-haystack · opentelemetry-instrumentation-litellm · opentelemetry-instrumentation-transformers · lumigo-tracer · traceloop-sdk