--- id: opentelemetry-resource-detector-azure version: "0.1.5" license: unclear license_treatment: permissive maintenance: active --- # opentelemetry-resource-detector-azure — Azure Resource Detector for OpenTelemetry License: permissive · Maintenance: active · Downloads: 16.0M/mo ## What it is and what it does This package extends OpenTelemetry's resource detection framework with Azure-specific detectors that automatically populate trace metadata from your Azure deployment environment. When initialized, the detectors read Azure environment variables and metadata service responses to populate standard OpenTelemetry resource attributes like service.name, cloud.platform, cloud.region, and host.id—eliminating manual configuration of these fields in Azure-hosted applications. The package supports three Azure compute platforms: App Service (web apps), Functions (serverless), and Virtual Machines. Each detector maps Azure-specific metadata to OpenTelemetry's semantic conventions for cloud resources, allowing traces to carry rich context about where they originated without requiring application code changes. It integrates directly with opentelemetry-sdk's TracerProvider and resource aggregation system. Use it for: - Automatically tag traces from Azure App Service deployments with service name, region, and resource group without manual configuration. - Correlate telemetry from Azure Functions with function instance IDs and memory limits for serverless workload analysis. - Enrich VM-based application traces with host metadata (VM size, scale set name, OS type) from the Azure Metadata Service. - Build multi-cloud observability by standardizing resource attributes across Azure and non-Azure services using OpenTelemetry conventions. - Simplify trace filtering and aggregation in observability backends by ensuring consistent cloud.provider and cloud.platform attributes. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides OpenTelemetry resource detectors that automatically identify and tag telemetry data with Azure environment metadata from App Service, Functions, and Virtual Machines. Yes. Install this if you run Python applications on Azure and use OpenTelemetry for tracing. It eliminates boilerplate resource configuration, has no known vulnerabilities, low install friction, and active maintenance. Skip it only if you don't use OpenTelemetry or don't need Azure-specific metadata in your traces. ## Install pip install opentelemetry-resource-detector-azure uv add opentelemetry-resource-detector-azure poetry add opentelemetry-resource-detector-azure ## Installing opentelemetry-resource-detector-azure Before you install: Low friction: pure Python wheel with a single runtime dependency on opentelemetry-sdk. Actively maintained with recent commits and no known vulnerabilities. License in practice: Permissive Apache license; no restrictions on commercial or proprietary use. Quickstart: pip install opentelemetry-resource-detector-azure from opentelemetry.sdk.trace import TracerProvider from opentelemetry.resource.detector.azure.app_service import AzureAppServiceResourceDetector from opentelemetry.sdk.resources import get_aggregated_resources trace_provider = TracerProvider( resource=get_aggregated_resources([AzureAppServiceResourceDetector()]) ) Requires Python 3.8 or later; detectors rely on Azure environment variables (WEBSITE_SITE_NAME, etc.) or Azure Metadata Service availability when running on Azure resources. Verify before relying: - Whether detectors gracefully handle missing Azure environment variables or metadata service unavailability. - Performance overhead of resource detection during tracer initialization. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 16.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags opentelemetry azure resource detector, azure app service tracing, azure vm telemetry metadata, opentelemetry azure integration, cloud resource detection azure, azure functions tracing, distributed tracing azure, observability, azure-integration, distributed-tracing [View on SkillFed](https://skillfed.io/packages/opentelemetry-resource-detector-azure) · [View on PyPI](https://pypi.org/project/opentelemetry-resource-detector-azure/)