Skip to main content

Azure App Service Plan

Required Azure App Service Plan Attributes

The following cost calculation tags are required for traces originating from Azure App Service Plans.

Always Required Fields

These fields are always required for Azure App Service Plan cost calculation:

Attribute NameExample ValueAllowed Values
azure.asp.service_nameApp ServiceAzure service name
azure.asp.locationeastusAzure region
azure.asp.sku_nameP1v3Azure App Service Plan SKU
azure.asp.os_typeLinuxLinux, Windows
azure.asp.instances2Number of instances

Cost Calculation

Azure App Service Plans are priced at an hourly rate. Beakpoint calculates cost based on span duration:

cost = hourly_rate × (span_duration_seconds / 3600)

When multiple spans overlap on the same plan (identified by azure.asp.sku_name + azure.asp.os_type), costs are proportionally shared using a time-sharing algorithm. Spans on different plans are priced independently.

Example Configuration

Set these as OpenTelemetry resource attributes in your application:

OTEL_RESOURCE_ATTRIBUTES: "azure.asp.service_name=App Service,azure.asp.location=eastus,azure.asp.sku_name=P1v3,azure.asp.os_type=Linux,azure.asp.instances=2"