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'sRequestContextSerializer, whoseto_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→ aCONSUMERspanoslo.messaging.rpc.processNotificationDispatcher.dispatch→ aCONSUMERspanoslo.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.14.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opentelemetry_instrumentation_oslo_messaging-0.14.0.tar.gz | 13.7 kB | With provenance | Details for opentelemetry_instrumentation_oslo_messaging-0.14.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opentelemetry_instrumentation_oslo_messaging-0.14.0-py3-none-any.whl | Python 3 | none | any | Details for opentelemetry_instrumentation_oslo_messaging-0.14.0-py3-none-any.whl |
Total release size: 25.2 kB
Release files / opentelemetry_instrumentation_oslo_messaging-0.14.0.tar.gz
| Download URL | opentelemetry_instrumentation_oslo_messaging-0.14.0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
670959415218607e26e62f2372006dee3999a577470cfc95519fee8067622232
|
|
BLAKE2b-256 checksum How to use checksums |
61c545adc26816bd5e2866f37a161fdc275f3e03e820bf6a7b916a41bdda95d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 12, 2026.
Transparency logRelease files / opentelemetry_instrumentation_oslo_messaging-0.14.0-py3-none-any.whl
| Download URL | opentelemetry_instrumentation_oslo_messaging-0.14.0-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48f074cd09421d51f78aafa4083fe85608f518f8b9b6151b7c25e54cebfcf274
|
|
BLAKE2b-256 checksum How to use checksums |
1aaa05230079afb9dfdc44e35b5cbeb8cb63e97b72c0a1ffaf96b8ad8266cf69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 12, 2026.
Transparency logSecurity for opentelemetry-instrumentation-oslo-messaging 0.14.0
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.
Attestation for opentelemetry_instrumentation_oslo_messaging-0.14.0.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 Nov 12, 2026.
Transparency logA 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.