Skip to main content

OpenStack oslo.messaging instrumentation for OpenTelemetry

Project description

OpenTelemetry oslo.messaging Instrumentation

OpenStack oslo.messaging instrumentation for OpenTelemetry.

It patches the client-side entry points so outgoing messages are traced and the active trace context travels with the message:

  • RPCClient.call → a CLIENT span oslo.messaging.rpc.call
  • RPCClient.cast → a PRODUCER span oslo.messaging.rpc.cast
  • Notifier._notify → a PRODUCER span oslo.messaging.notification.publish

For each traced call the current context is injected into the request context's _otel_context carrier so a consumer instrumented the same way can continue the trace. Message payloads are never recorded as span attributes.

Usage

from opentelemetry.instrumentation.oslo_messaging import (
    OsloMessagingInstrumentor,
)

OsloMessagingInstrumentor().instrument()

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_oslo_messaging-0.0.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_oslo_messaging-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1f0e244a251929e769ea2f7f9715e9ed2a0f6104d2ff13c787f958199a917b4f
MD5 d3dcd4cedbf21eaf6fe97e460842f3a6
BLAKE2b-256 ba9aa9c87b0ab58f7720c4805066cf346b3e714fe7009448c7ac0ff9f60d19a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_oslo_messaging-0.0.1.tar.gz:

Publisher: publish-pypi.yml on daipham3213/opentelemetry-openstack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentelemetry_instrumentation_oslo_messaging-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_oslo_messaging-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 112dae63ab7319a033c0cbc19200246a92f899c500fafe0b024ae158bb370303
MD5 c250ef60dbafded6ca91b9622a182622
BLAKE2b-256 47fa030d1a424e401a5379b0411845218fea4ae23fe6968b7e74bd564b349f8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_oslo_messaging-0.0.1-py3-none-any.whl:

Publisher: publish-pypi.yml on daipham3213/opentelemetry-openstack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page