This library provides an OpenTelemetry plugin for `azure-core`, enabling automatic distributed tracing for Python Azure SDK client library calls. It integrates with your OpenTelemetry setup to propagate context and create spans for Azure service interactions. The current version is `1.0.0b12`, indicating a beta release, and it is actively maintained as part of the broader Azure SDK for Python.
pip install azure-core-tracing-opentelemetry opentelemetry-sdk opentelemetry-exporter-azure-monitorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to set up OpenTelemetry tracing for Azure SDK operations. It configures a simple console exporter, enables the `azure-core` OpenTelemetry plugin, and then performs a basic Azure Blob Storage operation. Traces for the Blob Storage client calls will be output to the console.
Ensure `opentelemetry.trace.set_tracer_provider()` is called and at least one `SpanProcessor` is added to the `TracerProvider` before initializing Azure SDK clients.
Call `from azure.core.tracing.ext.opentelemetry_span import use_opentelemetry; use_opentelemetry()` at the very beginning of your application code.
Monitor release notes carefully for future beta and stable versions. Pin to specific beta versions if stability is critical for your current development phase.
Always install the required OpenTelemetry packages alongside this library (`pip install azure-core-tracing-opentelemetry opentelemetry-sdk`) to ensure compatible versions are pulled in. Avoid manual installation of incompatible OpenTelemetry versions.
Ensure `opentelemetry-exporter-azure-monitor` is explicitly installed alongside this library (e.g., `pip install azure-core-tracing-opentelemetry opentelemetry-sdk opentelemetry-exporter-azure-monitor`) to prevent installation errors and ensure complete tracing capabilities.
Verify the availability of `opentelemetry-exporter-azure-monitor` for your Python environment. Consider using a different Python version or platform where the package is known to be available, or monitor its release status for future compatibility.
No traffic data recorded yet.