OpenStack oslo.messaging instrumentation for OpenTelemetry
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_instrumentation_oslo_messaging-0.3.1.tar.gz.
File metadata
- Download URL: opentelemetry_instrumentation_oslo_messaging-0.3.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
251537af0f60e38e562516766765fe95ce1020ba0f9cafe9768a92637f95c47a
|
|
| MD5 |
fd197665a73926f5726b16c47724b9d0
|
|
| BLAKE2b-256 |
af72a3e1007fc00071358dc7c5fd04867d5ce390a050473d0950ed347fc2b767
|
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_oslo_messaging-0.3.1.tar.gz:
Publisher:
publish-pypi.yml on daipham3213/opentelemetry-openstack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_instrumentation_oslo_messaging-0.3.1.tar.gz -
Subject digest:
251537af0f60e38e562516766765fe95ce1020ba0f9cafe9768a92637f95c47a - Sigstore transparency entry: 2019236340
- Sigstore integration time:
-
Permalink:
daipham3213/opentelemetry-openstack@ee651ab22c2a23aee9a9c4b96dfac714c8190371 -
Branch / Tag:
refs/tags/0.3.1 - Owner: https://github.com/daipham3213
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@ee651ab22c2a23aee9a9c4b96dfac714c8190371 -
Trigger Event:
release
-
Statement type:
File details
Details for the file opentelemetry_instrumentation_oslo_messaging-0.3.1-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_oslo_messaging-0.3.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
038abca6ffd903f2e0724f67614561a838e9a77d15e0d7720e3632b47932051f
|
|
| MD5 |
44a2282dbc13a3a5116744cc88c17ef3
|
|
| BLAKE2b-256 |
0cf28dc6d7b7df26250b2fdfef2557b0ffcdf0d6c131ce58c8b86afe5b8eef4a
|
Provenance
The following attestation bundles were made for opentelemetry_instrumentation_oslo_messaging-0.3.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on daipham3213/opentelemetry-openstack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opentelemetry_instrumentation_oslo_messaging-0.3.1-py3-none-any.whl -
Subject digest:
038abca6ffd903f2e0724f67614561a838e9a77d15e0d7720e3632b47932051f - Sigstore transparency entry: 2019236659
- Sigstore integration time:
-
Permalink:
daipham3213/opentelemetry-openstack@ee651ab22c2a23aee9a9c4b96dfac714c8190371 -
Branch / Tag:
refs/tags/0.3.1 - Owner: https://github.com/daipham3213
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@ee651ab22c2a23aee9a9c4b96dfac714c8190371 -
Trigger Event:
release
-
Statement type: