skillfed

opentelemetry-instrumentation-pika

OpenTelemetry pika instrumentation

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

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

uv

uv add opentelemetry-instrumentation-pika

poetry

poetry add opentelemetry-instrumentation-pika

Installing 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

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

pika tracing instrumentationrabbitmq opentelemetrymessage queue distributed tracingpika span generationamqp tracingopentelemetry pikarabbitmq observability
observabilitydistributed-tracingrabbitmq

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-aio-pika

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-redis

Adds distributed tracing to Redis client calls…

permissive · top 1,000 on PyPI

pika

Pika is a pure-Python AMQP 0-9-1 client library…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-httpx

Adds distributed tracing to HTTP requests made…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-aiokafka

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-boto

Adds distributed tracing to AWS SDK (Boto)…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-django

Adds distributed tracing to Django applications…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-flask

Adds distributed tracing to Flask web…

permissive · top 1,000 on PyPI

aio-pika

aio-pika is an asyncio-based wrapper around…

permissive · top 5,000 on PyPI

aws-opentelemetry-distro

Provides AWS-integrated OpenTelemetry…

permissive · top 5,000 on PyPI