Skip to main content

OpenTelemetry oslo.messaging Instrumentation

OpenStack oslo.messaging instrumentation for OpenTelemetry.

It patches two thin layers to produce end-to-end producer → consumer traces.

Producer — context injection. Transport._send and Transport._send_notification inject the current W3C trace context into the message's on-the-wire context dictionary:

  • This runs after the serializer, so it is serializer-agnostic — it works with any Serializer (including production's RequestContextSerializer, whose to_dict() would otherwise drop unknown keys).
  • It is a single chokepoint covering every send path: RPC calls, casts, fanout, replies, and notifications.
  • No producer span is created; the trace linkage rides on whatever span is already active in the caller (e.g. the WSGI request span).

Consumer — spans. The dispatchers open CONSUMER spans parented to the producer, extracting context from the incoming message:

  • RPCDispatcher.dispatch → a CONSUMER span oslo.messaging.rpc.process
  • NotificationDispatcher.dispatch → a CONSUMER span oslo.messaging.notification.process

The span is scoped to the dispatch call, so the remote context is never attached beyond message handling. Message payloads are never recorded as span attributes. The batch notification dispatcher is not instrumented.

Usage

from opentelemetry.instrumentation.oslo_messaging import (
    OsloMessagingInstrumentor,
)

OsloMessagingInstrumentor().instrument()

Metadata

Release files for opentelemetry-instrumentation-oslo-messaging 0.12.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentelemetry-instrumentation-oslo-messaging 0.12.3
File Size Uploaded Provenance Actions
opentelemetry_instrumentation_oslo_messaging-0.12.3.tar.gz 8.9 kB With provenance Details for opentelemetry_instrumentation_oslo_messaging-0.12.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-instrumentation-oslo-messaging 0.12.3
File Interpreter ABI Platform Actions
opentelemetry_instrumentation_oslo_messaging-0.12.3-py3-none-any.whl Python 3 none any Details for opentelemetry_instrumentation_oslo_messaging-0.12.3-py3-none-any.whl

Total release size: 17.5 kB

Release files / opentelemetry_instrumentation_oslo_messaging-0.12.3.tar.gz

Download URL opentelemetry_instrumentation_oslo_messaging-0.12.3.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6c0fd1f143d07addf967328f27245104aadafa712ec0eccad6f1f4f1a8a5688f
BLAKE2b-256 checksum
How to use checksums
e19b746f7484f88a0bcb8d1582cc838dfc131c318c589ca98134b3e93ca9370e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release files / opentelemetry_instrumentation_oslo_messaging-0.12.3-py3-none-any.whl

Download URL opentelemetry_instrumentation_oslo_messaging-0.12.3-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cfb58a1310b17b7686e64b04c0e9f42999087d767dab533cc90bdac710ae783
BLAKE2b-256 checksum
How to use checksums
1b3341923f8cbdb825f9fabab74277e7e77af441902858663ad041b32921c7de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Security for opentelemetry-instrumentation-oslo-messaging 0.12.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for opentelemetry_instrumentation_oslo_messaging-0.12.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page