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

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

Built distribution (wheel)

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

Total release size: 13.1 kB

Release files / opentelemetry_instrumentation_openstacksdk-0.12.5.tar.gz

Download URL opentelemetry_instrumentation_openstacksdk-0.12.5.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
213be72633bad3569a5e635c876a17815eec9cf897f6f0a9c226c8aa4101adbc
BLAKE2b-256 checksum
How to use checksums
f749c6c5a8e7b9d7c244e08f0003267cfff2994a9bffc41f840596b12e780584
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 20, 2026.

Transparency log

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

Download URL opentelemetry_instrumentation_openstacksdk-0.12.5-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82972bf4a57c20dc11e35b7530e26786ea266ce2d1de82369c0c477c1b69e90f
BLAKE2b-256 checksum
How to use checksums
8c8a81b05ab029cc5fb966d2ea2863125780e9dc426ee9e73d4bfabaf4dc4ca3
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 20, 2026.

Transparency log

Security for opentelemetry-instrumentation-openstacksdk 0.12.5

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.5.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 20, 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