azure-core-tracing-opentelemetry
Microsoft Azure Core OpenTelemetry plugin Library for Python
What it is and what it does
This package is a plugin that bridges Azure SDK clients with OpenTelemetry, the industry-standard observability framework. It automatically instruments HTTP requests and operations made by Azure service clients to emit distributed tracing spans without requiring additional code changes. Once configured—either via the AZURE_SDK_TRACING_IMPLEMENTATION environment variable or programmatically through azure.core.settings—the plugin hooks into Azure Core's pipeline to capture span data including HTTP methods, status codes, server addresses, and exception details, then exports them to your configured OpenTelemetry exporter.
The package handles span lifecycle management, context propagation, and suppression of redundant internal spans automatically. Recent versions align span attribute names with OpenTelemetry semantic conventions version 1.23.1, remapping attributes like http.method to http.request.method for standards compliance. It is designed to work seamlessly with any Azure SDK that depends on azure-core, requiring minimal setup beyond installing the package and configuring your OpenTelemetry tracer provider.
Use it for:
- Enable distributed tracing for Azure Storage, Key Vault, or Event Hubs calls to track request flow across services.
- Export Azure SDK operation spans to Azure Monitor for centralized observability and performance monitoring.
- Diagnose latency and failures in Azure service interactions by correlating spans with trace IDs across your system.
- Integrate Azure workloads into existing OpenTelemetry observability pipelines without code changes to Azure client calls.
- Record exception details and HTTP status codes in spans for post-incident analysis and alerting on Azure SDK errors.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Azure SDK clients with OpenTelemetry to emit distributed tracing spans for observability and monitoring of Azure service calls.
Yes, if you are using Azure SDKs and need distributed tracing. The package is actively maintained, has low install friction, and integrates cleanly with opentelemetry-api and azure-core. The main condition is that you must run Python 3.10 or later (3.8 and 3.9 are no longer supported as of version 1.0.0b13). License information is not clearly documented, so verify licensing terms before use in restricted environments.
Install
azure-core-tracing-opentelemetry on PyPI
pip
pip install azure-core-tracing-opentelemetryuv
uv add azure-core-tracing-opentelemetrypoetry
poetry add azure-core-tracing-opentelemetryInstalling azure-core-tracing-opentelemetry
Before you install
Low install friction with only two runtime dependencies (opentelemetry-api and azure-core). Package is actively maintained with a recent release; however, version 1.0.0b13 dropped support for Python 3.8 and 3.9, requiring Python 3.10 or later.
Quickstart
pip install azure-core-tracing-opentelemetry
from azure.core.settings import settings
settings.tracing_implementation = "opentelemetry"
from opentelemetry import trace
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span(name="MyApplication"):
pass # Azure SDK calls within this span will be traced
Requires Python 3.10 or later; Python 3.8 and 3.9 are no longer supported as of version 1.0.0b13.
Verify before relying
- Whether license information is available elsewhere (license_raw and license_spdx are both null).
- Compatibility matrix with specific Azure SDK versions and OpenTelemetry exporter implementations.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — opentelemetry-api, azure-core |
| Maintenance | actively maintained — 105 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 16,254,043/month — #1,157 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_core_tracing_opentelemetry-1.0.0b13-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
azure-monitor-opentelemetry-exporterExports OpenTelemetry traces, metrics, and logs…
permissive · top 1,000 on PyPI
pyroscope-otelConnects OpenTelemetry tracing with Pyroscope…
permissive · top 5,000 on PyPI
azure-monitor-opentelemetryBundles OpenTelemetry SDK and Azure Monitor…
permissive · top 5,000 on PyPI
azure-monitor-events-extensionSends custom events to Azure Application…
permissive · top 15,000 on PyPI
microsoft-opentelemetryProvides a unified OpenTelemetry distribution…
permissive · top 15,000 on PyPI
opentelemetry-sdk-extension-awsProvides OpenTelemetry SDK components to make…
permissive · top 5,000 on PyPI
uipath-coreProvides core abstractions, data models, and…
unclear · top 5,000 on PyPI
opentracingProvides the OpenTracing API for Python,…
permissive · top 5,000 on PyPI
nv-one-logger-coreProvides core telemetry abstractions (spans,…
permissive · top 15,000 on PyPI
microsoft-agents-a365-observability-coreProvides OpenTelemetry-based telemetry,…
permissive · top 15,000 on PyPI