opentelemetry-instrumentation-pika
OpenTelemetry pika instrumentation
What it is and what it does
This package integrates pika (the RabbitMQ Python client) with OpenTelemetry, the standard observability framework. It automatically captures tracing data from pika message operations—publishing, consuming, and queue interactions—and emits them as OpenTelemetry spans that can be exported to tracing backends like Jaeger or Datadog.
The instrumentation works by wrapping pika's core methods using the wrapt library, so traces flow through your message queue operations without requiring code changes to your pika calls. It depends on the opentelemetry-api, opentelemetry-instrumentation, and opentelemetry-semantic-conventions packages to define and emit the spans. This is a beta release (0.65b0) maintained as part of the OpenTelemetry Python contrib project.
Use it for:
- Trace RabbitMQ message flow across microservices to identify latency bottlenecks in message publishing and consumption.
- Correlate message queue operations with other distributed traces (HTTP requests, database calls) for end-to-end observability.
- Debug message delivery issues by inspecting span data for failed or delayed queue operations.
- Monitor pika client health and performance metrics by exporting instrumentation data to a tracing backend.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds distributed tracing to pika (RabbitMQ client library) by instrumenting message publishing and consumption to emit OpenTelemetry spans.
Yes, if you are already using pika and OpenTelemetry in your stack and need visibility into message queue operations. The low install friction, active maintenance, and permissive license make it a straightforward addition. However, note that this is a beta release (0.65b0); verify stability requirements for your use case before deploying to production.
Install
opentelemetry-instrumentation-pika on PyPI
pip
pip install opentelemetry-instrumentation-pikauv
uv add opentelemetry-instrumentation-pikapoetry
poetry add opentelemetry-instrumentation-pikaInstalling opentelemetry-instrumentation-pika
Before you install
Low friction install with a small, stable dependency tree. Released 29 days ago with active maintenance; the project repository is current and not archived.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.
Quickstart
pip install opentelemetry-instrumentation-pika
from opentelemetry.instrumentation.pika import PikaInstrumentor
PikaInstrumentor().instrument()
Requires Python 3.10 or later; pika must be installed separately and OpenTelemetry exporters must be configured to send traces to a backend.
Verify before relying
- Whether this beta version (0.65b0) is stable enough for production use or intended for testing only.
- Specific pika versions supported by this instrumentation.
- Whether automatic instrumentation is enabled by default or requires explicit setup.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, packaging, wrapt |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,957,904/month — #2,435 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_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-aio-pikaAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-redisAdds distributed tracing to Redis client calls…
permissive · top 1,000 on PyPI
pikaPika is a pure-Python AMQP 0-9-1 client library…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-httpxAdds distributed tracing to HTTP requests made…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-aiokafkaAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-botoAdds distributed tracing to AWS SDK (Boto)…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-djangoAdds distributed tracing to Django applications…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-flaskAdds distributed tracing to Flask web…
permissive · top 1,000 on PyPI
aio-pikaaio-pika is an asyncio-based wrapper around…
permissive · top 5,000 on PyPI
aws-opentelemetry-distroProvides AWS-integrated OpenTelemetry…
permissive · top 5,000 on PyPI