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

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.12.2
File Size Uploaded Provenance Actions
opentelemetry_instrumentation_openstacksdk-0.12.2.tar.gz 6.6 kB With provenance Details for opentelemetry_instrumentation_openstacksdk-0.12.2.tar.gz

Built distribution (wheel)

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

Total release size: 13.1 kB

Release files / opentelemetry_instrumentation_openstacksdk-0.12.2.tar.gz

Download URL opentelemetry_instrumentation_openstacksdk-0.12.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0b0c4118680855fb1bc8a1a1b140cc7266b0e0a8df0158d3cef1badb0a03631a
BLAKE2b-256 checksum
How to use checksums
f30fccba8cf96b5434d6ec15fbd54067c5405a24d170b69171b26b44f20a6204
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 14, 2026.

Transparency log

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

Download URL opentelemetry_instrumentation_openstacksdk-0.12.2-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dbee9b140a257dcbc3dbd9586d5e36446d94ad6d0867a4d5deaa915c8f93f40
BLAKE2b-256 checksum
How to use checksums
668c0d507dcdc61a3edb1118c2ba58b6da609056b2e17f8003c30bd742f33a28
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 14, 2026.

Transparency log

Security for opentelemetry-instrumentation-openstacksdk 0.12.2

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.12.2.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 14, 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