skillfed

llama-index-instrumentation

Instrumentation and Observability for LlamaIndex

llama-index-instrumentation v0.5.0 8.3M downloads/30d#1,641 on PyPI51,641
Permissive license MIT Active released

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-instrumentation

uv

uv add llama-index-instrumentation

poetry

poetry add llama-index-instrumentation

Installing 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

llama index observabilityinstrumentation hooksspan and event trackingapplication monitoringobservability frameworkdistributed tracingevent dispatchers
observabilityinstrumentation

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

opentelemetry-instrumentation-llamaindex

Adds distributed tracing to LlamaIndex…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-ollama

Adds distributed tracing to Ollama Python…

permissive · top 5,000 on PyPI

openinference-instrumentation-llama-index

Auto-instruments LlamaIndex applications to…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-remoulade

Adds distributed tracing instrumentation for…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-aiokafka

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

libhoney

Sends events and metrics to Honeycomb, a…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-groq

Automatically captures traces of Groq SDK API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-celery

Adds distributed tracing and observability to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-redis

Adds distributed tracing to Redis client calls…

permissive · top 1,000 on PyPI

pyccolo

Pyccolo is a library for declarative…

permissive · top 15,000 on PyPI