--- id: opentelemetry-instrumentation-pika version: "0.65b0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # opentelemetry-instrumentation-pika — OpenTelemetry pika instrumentation License: permissive · Maintenance: active · Downloads: 4.0M/mo ## 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 above — 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 pip install opentelemetry-instrumentation-pika uv add opentelemetry-instrumentation-pika 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_current - Install friction: low - Maintenance: active - Downloads: 4.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags pika tracing instrumentation, rabbitmq opentelemetry, message queue distributed tracing, pika span generation, amqp tracing, opentelemetry pika, rabbitmq observability, observability, distributed-tracing, rabbitmq [View on SkillFed](https://skillfed.io/packages/opentelemetry-instrumentation-pika) · [View on PyPI](https://pypi.org/project/opentelemetry-instrumentation-pika/)