opentelemetry-instrumentation-aio-pika
OpenTelemetry Aio-pika instrumentation
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-pikauv
uv add opentelemetry-instrumentation-aio-pikapoetry
poetry add opentelemetry-instrumentation-aio-pikaInstalling 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
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-aiokafkaAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pikaAdds distributed tracing to pika (RabbitMQ…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-aiohttp-clientAdds distributed tracing to HTTP requests made…
permissive · top 1,000 on PyPI
aio-pikaaio-pika is an asyncio-based wrapper around…
permissive · top 5,000 on PyPI
taskiq-aio-pikaProvides a RabbitMQ broker implementation for…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-aiopgAdds distributed tracing instrumentation for…
permissive · top 5,000 on PyPI
opentelemetry-contrib-instrumentationsA meta-package that installs all OpenTelemetry…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-remouladeAdds distributed tracing instrumentation for…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-botocoreAdds distributed tracing to AWS SDK calls made…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-kafka-pythonAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI