OpenTelemetry.Resources.Azure 1.15.0-beta.1

Prefix Reserved
This is a prerelease version of OpenTelemetry.Resources.Azure.
dotnet add package OpenTelemetry.Resources.Azure --version 1.15.0-beta.1
                    
NuGet\Install-Package OpenTelemetry.Resources.Azure -Version 1.15.0-beta.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OpenTelemetry.Resources.Azure" Version="1.15.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenTelemetry.Resources.Azure" Version="1.15.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="OpenTelemetry.Resources.Azure" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OpenTelemetry.Resources.Azure --version 1.15.0-beta.1
                    
#r "nuget: OpenTelemetry.Resources.Azure, 1.15.0-beta.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OpenTelemetry.Resources.Azure@1.15.0-beta.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OpenTelemetry.Resources.Azure&version=1.15.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=OpenTelemetry.Resources.Azure&version=1.15.0-beta.1&prerelease
                    
Install as a Cake Tool

Resource Detectors for Azure cloud environments

Status
Stability Beta
Code Owners @rajkumar-rangaraj

NuGet version badge NuGet download count badge codecov.io

This package contains Resource Detectors for applications running in Azure environment.

Installation

dotnet add package --prerelease OpenTelemetry.Resources.Azure

App Service Resource Detector

Adds resource attributes for the applications running in Azure App Service. The following example shows how to add AppServiceResourceDetector to the ResourceBuilder.

using OpenTelemetry;
using OpenTelemetry.Resources;

using var tracerProvider = Sdk.CreateTracerProviderBuilder()
    .ConfigureResource(resource => resource.AddAzureAppServiceDetector())
    // other configurations
    .Build();

using var meterProvider = Sdk.CreateMeterProviderBuilder()
    .ConfigureResource(resource => resource.AddAzureAppServiceDetector())
    // other configurations
    .Build();

using var loggerFactory = LoggerFactory.Create(builder =>
{
    builder.AddOpenTelemetry(options =>
    {
        options.SetResourceBuilder(ResourceBuilder.CreateDefault().AddAzureAppServiceDetector());
    });
});
Attribute Description
azure.app.service.stamp The specific "stamp" cluster within Azure where the App Service is running, e.g., "waws-prod-sn1-001".
cloud.platform The cloud platform. Here, it's always "azure_app_service".
cloud.provider The cloud service provider. In this context, it's always "azure".
cloud.resource_id The Azure Resource Manager URI uniquely identifying the Azure App Service. Typically in the format "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Web/sites/{siteName}".
cloud.region The Azure region where the App Service is hosted, e.g., "East US", "West Europe", etc.
deployment.environment.name The deployment slot where the Azure App Service is running, such as "staging", "production", etc.
host.id The primary hostname for the app, excluding any custom hostnames.
service.instance.id The specific instance of the Azure App Service, useful in a scaled-out configuration.
service.name The name of the Azure App Service.

VM Resource Detector

Adds resource attributes for the applications running in an Azure virtual machine. The following example shows how to add AzureVMResourceDetector to the ResourceBuilder.

using OpenTelemetry;
using OpenTelemetry.Resources;

using var tracerProvider = Sdk.CreateTracerProviderBuilder()
    .ConfigureResource(resource => resource.AddAzureVMDetector())
    // other configurations
    .Build();

using var meterProvider = Sdk.CreateMeterProviderBuilder()
    .ConfigureResource(resource => resource.AddAzureVMDetector())
    // other configurations
    .Build();
Attribute Description
azure.vm.scaleset.name The name of the Virtual Machine Scale Set if the VM is part of one.
cloud.platform The cloud platform, which is always set to "azure_vm" in this context.
cloud.provider The cloud service provider, which is always set to "azure" in this context.
cloud.region The Azure region where the Virtual Machine is hosted, such as "East US", "West Europe", etc.
cloud.resource_id The Azure Resource Manager URI uniquely identifying the Azure Virtual Machine. It typically follows this format: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/virtualMachines/{vmName}".
host.id A unique identifier for the VM host, for instance, "02aab8a4-74ef-476e-8182-f6d2ba4166a6".
host.name The name of the host machine.
host.type The size of the VM instance, for example, "Standard_D2s_v3".
os.type The type of operating system running on the VM, such as "Linux" or "Windows".
os.version The version of the operating system running on the VM.
service.instance.id An identifier for a specific instance of the service running on the Azure VM, for example, "02aab8a4-74ef-476e-8182-f6d2ba4166a6".

Azure Container Apps Resource Detector

Adds resource attributes for the applications running in Azure Container Apps or Azure Container App jobs. The following example shows how to add AzureContainerAppsResourceDetector to the ResourceBuilder.

using OpenTelemetry;
using OpenTelemetry.Resources;

using var tracerProvider = Sdk.CreateTracerProviderBuilder()
    .ConfigureResource(resource => resource.AddAzureContainerAppsDetector())
    // other configurations
    .Build();

using var meterProvider = Sdk.CreateMeterProviderBuilder()
    .ConfigureResource(resource => resource.AddAzureContainerAppsDetector())
    // other configurations
    .Build();
Attribute Description
cloud.platform The cloud platform. Here, it's always "azure_container_apps".
cloud.provider The cloud service provider. In this context, it's always "azure".
service.instance.id Represents the specific instance ID of Azure Container Apps, useful in scaled-out configurations.
service.name The name of the Azure Container Apps or Azure Container Apps job.
service.version The current revision or version of Azure Container Apps, or in case of a Azure Container Apps job - the job execution name.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OpenTelemetry.Resources.Azure:

Package Downloads
OpenTelemetry.AutoInstrumentation.Runtime.Managed

Managed components used by the OpenTelemetry.AutoInstrumentation project.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on OpenTelemetry.Resources.Azure:

Repository Stars
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
Version Downloads Last Updated
1.15.0-beta.1 53,815 1/21/2026
1.14.0-beta.1 389,746 11/13/2025
1.13.0-beta.1 24,187 10/22/2025
1.12.0-beta.1 1,068,555 5/6/2025
1.11.0-beta.2 748,184 3/5/2025
1.11.0-beta.1 115,982 1/27/2025
1.10.0-beta.1 42,400 12/9/2024
1.0.0-beta.9 954,460 9/24/2024
1.0.0-beta.8 804,203 6/18/2024
1.0.0-beta.7 22,760 6/4/2024