Skip to main content

OpenStack keystoneauth1 module instrumentation for OpenTelemetry

Project description

OpenTelemetry keystoneauth1 instrumentation

Instruments keystoneauth1, the shared authentication and HTTP library underneath virtually every OpenStack client.

It wraps keystoneauth1.session.Session.request -- the single method through which every HTTP call the library makes funnels (service API calls, token requests to Keystone, and version-discovery probes) -- so each call becomes a CLIENT span carrying:

  • http.request.method and http.response.status_code;
  • the resolved url.full plus server.address / server.port;
  • openstack.service_type when the caller supplied an endpoint_filter;
  • the OpenStack global request id as a correlation id, when present.

The active W3C trace context is injected into the outgoing request headers, so a trace started in the client continues on the OpenStack service that handles the request (when that service is itself instrumented, e.g. via opentelemetry-instrumentation-keystonemiddleware).

Because it sits at the session layer -- below the OpenStack SDK's proxy -- this instrumentor also captures the token and discovery requests that opentelemetry-instrumentation-openstacksdk deliberately leaves untraced. When both are enabled the session spans nest under the SDK's proxy spans.

Installation

pip install opentelemetry-instrumentation-keystoneauth1

Usage

from opentelemetry.instrumentation.keystoneauth1 import (
    KeystoneAuth1Instrumentor,
)

KeystoneAuth1Instrumentor().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_keystoneauth1-0.9.1.dev0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_keystoneauth1-0.9.1.dev0.tar.gz
Algorithm Hash digest
SHA256 2add98d6d27c7ed3f0a3d8c4b57e1b5ecf2881265b532f5a4f6bcff1ff1c2cdf
MD5 edabdd66d3b495c2a2cfb3f39c6fa746
BLAKE2b-256 a3065229c95488e0085e30e2f7185eeb0fef5580f2fffca8a0cd6739b28f4986

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_keystoneauth1-0.9.1.dev0.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_keystoneauth1-0.9.1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_keystoneauth1-0.9.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 a90c4d1deae1ff9b4518b30076b95ef84e7fdf26f691debf86dd5f3b31ea8622
MD5 af28484b40f418cd2c0610e324064f36
BLAKE2b-256 2fdde1c03b6be1183fdf67d43deb87d15b618e9649c4c203286c42ecb82e93a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_keystoneauth1-0.9.1.dev0-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