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 examplecompute 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.addressandserver.port(the fully resolved URL is read back from the response once keystoneauth has looked up the endpoint); - adds
openstack.service_typeandopenstack.region_namedescribing 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| opentelemetry_instrumentation_openstacksdk-0.12.1.tar.gz | 6.6 kB | With provenance | Details for opentelemetry_instrumentation_openstacksdk-0.12.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opentelemetry_instrumentation_openstacksdk-0.12.1-py3-none-any.whl | Python 3 | none | any | Details for opentelemetry_instrumentation_openstacksdk-0.12.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / opentelemetry_instrumentation_openstacksdk-0.12.1.tar.gz
| Download URL | opentelemetry_instrumentation_openstacksdk-0.12.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa7ad259d7df27102bd13a7f1381ced0b77d40d9623778fe68c3a9a4200b5d74
|
|
BLAKE2b-256 checksum How to use checksums |
38ef2ba13afece4ca343e6bc5e6e5bbd888a0b66492bd2cb5da093d2323c3f09
|
| 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 logRelease files / opentelemetry_instrumentation_openstacksdk-0.12.1-py3-none-any.whl
| Download URL | opentelemetry_instrumentation_openstacksdk-0.12.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8963b079f84636726a75b0a706a4026832cb923ba6712f825c5ffdbb89ac6fe4
|
|
BLAKE2b-256 checksum How to use checksums |
4f6ea2ed36f6a20ad45b7548f4259d7eba642589a65d9e1a9570aa0fd3a2059c
|
| 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 logSecurity for opentelemetry-instrumentation-openstacksdk 0.12.1
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.
Attestation for opentelemetry_instrumentation_openstacksdk-0.12.1.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 logA 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.