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.11.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_keystoneauth1-0.11.1.tar.gz
Algorithm Hash digest
SHA256 1cec074303687969ae171d162eedeb5ace04553c5955f3fd685d7a52a0d1d83d
MD5 e62ff89cc2b6768117fcd48cfdcf4ac6
BLAKE2b-256 67f5c31f2dcef40e21079a065a6d92b34e7aeb71c2bbec02fe4b523c96831019

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_keystoneauth1-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f7ce7a01303daf4152fad8b12b5f195b0572f65f5a9666bd3fa33acc426aae7
MD5 fb52a72cae1b197ced5d38801fc08743
BLAKE2b-256 2d24ccff39652185e7a896ca1f02ad18ad9d21d804219d063589e75d8206d3c7

See more details on using hashes here.

Provenance

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