llama-index-instrumentation
Instrumentation and Observability for LlamaIndex
What it is and what it does
llama-index-instrumentation provides instrumentation hooks for observability, using spans, events, and dispatchers to capture and manage application behavior. The package is lightweight, depending only on deprecated and pydantic, and is designed to integrate with the LlamaIndex ecosystem.
The library is actively maintained with recent releases and a large backing repository. It targets Python 3.10 or later and is licensed under MIT, making it freely usable in most contexts. The instrumentation model centers on dispatchers that manage span and event handlers, enabling flexible observation of application execution.
Use it for:
- Track execution flow and performance by instrumenting spans and events.
- Debug workflows by monitoring event dispatchers and their handlers.
- Collect observability data for integration with external monitoring systems.
- Observe application behavior in production deployments for performance analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides instrumentation hooks for observability in LlamaIndex applications, enabling collection and management of spans, events, and dispatchers to track application behavior.
Yes, if you need observability for LlamaIndex applications. Low install friction, permissive MIT license, active maintenance, and zero known vulnerabilities make it a straightforward addition. Not applicable outside the LlamaIndex ecosystem.
Install
llama-index-instrumentation on PyPI
pip
pip install llama-index-instrumentationuv
uv add llama-index-instrumentationpoetry
poetry add llama-index-instrumentationInstalling llama-index-instrumentation
Before you install
Low install friction with only 2 runtime dependencies (deprecated and pydantic). Active maintenance with recent commits as of 2026-08-14.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for most commercial and open-source projects.
Quickstart
pip install llama-index-instrumentation
from llama_index_instrumentation import Instrumentation
instrumentation = Instrumentation()
Requires Python 3.10 or later (requires_python: >=3.10,<4.0).
Verify before relying
- What observability backends or exporters are supported by the span and event system.
- Whether the dispatcher API is stable or still evolving given the recent first release.
- How this package integrates with external monitoring and tracing systems.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — deprecated, pydantic |
| Maintenance | actively maintained — 155 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 8,253,813/month — #1,641 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: llama_index_instrumentation-0.5.0-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-llamaindexAdds distributed tracing to LlamaIndex…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-ollamaAdds distributed tracing to Ollama Python…
permissive · top 5,000 on PyPI
openinference-instrumentation-llama-indexAuto-instruments LlamaIndex applications to…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-remouladeAdds distributed tracing instrumentation for…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-aiokafkaAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
libhoneySends events and metrics to Honeycomb, a…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-groqAutomatically captures traces of Groq SDK API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-celeryAdds distributed tracing and observability to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-redisAdds distributed tracing to Redis client calls…
permissive · top 1,000 on PyPI
pyccoloPyccolo is a library for declarative…
permissive · top 15,000 on PyPI