Skip to main content

OpenTelemetry OpenStack SDK Instrumentation

OpenStack SDK (openstacksdk) instrumentation for OpenTelemetry.

The OpenStack SDK reaches every service through an openstack.connection.Connection whose service proxies (conn.compute, conn.network, ...) subclass openstack.proxy.Proxy. Every REST call the SDK makes funnels through a single method, Proxy.request, no matter which resource method the application called.

This instrumentor wraps Proxy.request so each SDK REST call becomes a CLIENT span. On instrument() it:

  • records one span per request, named {service_type} {HTTP method} (for example compute GET), falling back to the bare HTTP method when the proxy has no service type;
  • sets the standard HTTP client attributes http.request.method, http.response.status_code, url.full, server.address and server.port (the fully resolved URL is read back from the response once keystoneauth has looked up the endpoint);
  • adds openstack.service_type and openstack.region_name describing the proxy that issued the call;
  • injects the active W3C trace context into the outgoing request headers, so a trace started in the SDK continues on the OpenStack service that handles the request (when that service is instrumented too).

Proxy.request defaults to raise_exc=False, so HTTP error statuses come back as ordinary responses rather than exceptions; the span status is set to ERROR for any status code >= 400, and transport-level failures are recorded as exceptions on the span.

Note: the span is created at the proxy layer, so keystoneauth's own token and version-discovery requests — which go straight through the session rather than a proxy — are not traced. Only genuine SDK service calls produce spans.

Usage

from opentelemetry.instrumentation.openstacksdk import (
    OpenStackSDKInstrumentor,
)

OpenStackSDKInstrumentor().instrument()

import openstack

conn = openstack.connect(cloud="mycloud")
list(conn.compute.servers())  # emits a "compute GET" client span

Pass a tracer_provider to instrument() to use a provider other than the global default.

Metadata

Release files for opentelemetry-instrumentation-openstacksdk 0.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentelemetry-instrumentation-openstacksdk 0.13.0
File Size Uploaded Provenance Actions
opentelemetry_instrumentation_openstacksdk-0.13.0.tar.gz 6.6 kB With provenance Details for opentelemetry_instrumentation_openstacksdk-0.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-instrumentation-openstacksdk 0.13.0
File Interpreter ABI Platform Actions
opentelemetry_instrumentation_openstacksdk-0.13.0-py3-none-any.whl Python 3 none any Details for opentelemetry_instrumentation_openstacksdk-0.13.0-py3-none-any.whl

Total release size: 13.1 kB

Release files / opentelemetry_instrumentation_openstacksdk-0.13.0.tar.gz

Download URL opentelemetry_instrumentation_openstacksdk-0.13.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1f87b55ab7916e576d84783b21aacfc1172ee169d1377cbea02e7e01d6c34d4b
BLAKE2b-256 checksum
How to use checksums
860aa09c403094ebac0b896af5c7a422491110460be0860628e5be9b2fd26f15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 27, 2026.

Transparency log

Release files / opentelemetry_instrumentation_openstacksdk-0.13.0-py3-none-any.whl

Download URL opentelemetry_instrumentation_openstacksdk-0.13.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9124b3ca6ff62bf3e9233f4e9ad76cc04eb924a4595c5ef996049383b39241e0
BLAKE2b-256 checksum
How to use checksums
b983385f0efdb9852d3c93b464f86adbad41973e6850461eeca8bfae8f8e25cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 27, 2026.

Transparency log

Security for opentelemetry-instrumentation-openstacksdk 0.13.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.

Select from 2 files

Attestation for opentelemetry_instrumentation_openstacksdk-0.13.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 Aug 27, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page