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 Name | Example Value | Allowed Values |
|---|---|---|
azure.asp.service_name | App Service | Azure service name |
azure.asp.location | eastus | Azure region |
azure.asp.sku_name | P1v3 | Azure App Service Plan SKU |
azure.asp.os_type | Linux | Linux, Windows |
azure.asp.instances | 2 | Number 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"