skillfed

opentelemetry-instrumentation-aio-pika

OpenTelemetry Aio-pika instrumentation

opentelemetry-instrumentation-aio-pika v0.65b0 3.7M downloads/30d#2,513 on PyPI1,086
Permissive license Apache-2.0 Active released

What it is and what it does

This package is an OpenTelemetry instrumentation plugin that automatically wraps Aio-pika (an async RabbitMQ client) to emit distributed tracing spans. When installed and initialized, it intercepts message queue operations—publishes, consumes, and acknowledgments—and reports them as trace events to your configured OpenTelemetry collector. It depends on the core OpenTelemetry API and instrumentation framework, plus wrapt for runtime patching.

It is designed for developers who already use OpenTelemetry for observability and want to add visibility into async message queue traffic. The instrumentation is passive once enabled; you configure it once in your application startup, and it begins collecting spans automatically. It is currently in beta status (version 0.65b0) and supports Python 3.10 through 3.14.

Use it for:

  • Add distributed tracing to async RabbitMQ applications to track message flow across microservices.
  • Debug message queue bottlenecks by correlating queue operations with other service traces in your observability platform.
  • Monitor message publish and consume latency in production systems using OpenTelemetry exporters.
  • Correlate async message processing with HTTP requests and database queries in end-to-end traces.
  • Validate message queue behavior in integration tests by inspecting emitted trace spans.

Worth the install?

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

Adds distributed tracing instrumentation to Aio-pika, automatically capturing and reporting message queue operations to OpenTelemetry collectors.

Yes, if you already use OpenTelemetry and Aio-pika together. The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real observability gap for async message queues. The beta status (0.65b0) is typical for OpenTelemetry instrumentation plugins and does not indicate instability. Install it only if you have an OpenTelemetry collector and exporter already configured.

Install

opentelemetry-instrumentation-aio-pika on PyPI

pip

pip install opentelemetry-instrumentation-aio-pika

uv

uv add opentelemetry-instrumentation-aio-pika

poetry

poetry add opentelemetry-instrumentation-aio-pika

Installing opentelemetry-instrumentation-aio-pika

Before you install

Low install friction with a pure-Python wheel. Actively maintained as of 2026-08-14 with recent release activity. Depends on four core OpenTelemetry packages (opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt), all standard instrumentation infrastructure.

License in practice

Apache-2.0 permissive license allows use in most commercial and open-source projects with minimal restrictions—include a copy of the license and note any material modifications.

Quickstart

pip install opentelemetry-instrumentation-aio-pika

from opentelemetry.instrumentation.aio_pika import AioPikaInstrumentor

AioPikaInstrumentor().instrument()

Requires Python >=3.10; an OpenTelemetry SDK and exporter must be configured separately to actually collect and export traces.

Verify before relying

  • Whether this version (0.65b0) is production-ready or intended for pre-release testing only
  • Specific Aio-pika versions supported by this instrumentation
  • Whether additional OpenTelemetry exporter configuration is required beyond this package

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt
Maintenance actively maintained — 29 days since the last release
Last repo commit
First released
Downloads 3,728,619/month — #2,513 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opentelemetry_instrumentation_aio_pika-0.65b0-py3-none-any.whl

Development Status :: 4 - BetaIntended 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

aio-pika tracingopentelemetry rabbitmq instrumentationdistributed tracing message queueaio-pika observabilityopentelemetry async messagingrabbitmq span collectionmessage queue instrumentation
observabilitydistributed-tracingasync-messaging

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

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-pika

Adds distributed tracing to pika (RabbitMQ…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-aiohttp-client

Adds distributed tracing to HTTP requests made…

permissive · top 1,000 on PyPI

aio-pika

aio-pika is an asyncio-based wrapper around…

permissive · top 5,000 on PyPI

taskiq-aio-pika

Provides a RabbitMQ broker implementation for…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-aiopg

Adds distributed tracing instrumentation for…

permissive · top 5,000 on PyPI

opentelemetry-contrib-instrumentations

A meta-package that installs all OpenTelemetry…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-remoulade

Adds distributed tracing instrumentation for…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-botocore

Adds distributed tracing to AWS SDK calls made…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-kafka-python

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI