Skip to content

Commit

Permalink
Add resource detectors to prevent exceptions, and force unit tests to…
Browse files Browse the repository at this point in the history
… run.
  • Loading branch information
marrobi committed Jan 22, 2024
1 parent 2d4817d commit dc408dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/terraform/api-webapp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ resource "azurerm_linux_web_app" "api" {
STORAGE_ENDPOINT_SUFFIX = module.terraform_azurerm_environment_configuration.storage_suffix
LOGGING_LEVEL = var.logging_level
OTEL_RESOURCE_ATTRIBUTES = "service.name=api,service.version=${local.version}"
OTEL_EXPERIMENTAL_RESOURCE_DETECTORS = "azure_app_service"
}

identity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ write_files:
AAD_AUTHORITY_URL=${aad_authority_url}
MICROSOFT_GRAPH_FQDN=${microsoft_graph_fqdn}
OTEL_RESOURCE_ATTRIBUTES=service.name=resource_processor,service.version=${resource_processor_vmss_porter_image_tag}
OTEL_EXPERIMENTAL_RESOURCE_DETECTORS=azure_vm
LOGGING_LEVEL=${logging_level}
${rp_bundle_values}
- path: /etc/cron.hourly/docker-prune
Expand Down

0 comments on commit dc408dd

Please sign in to comment.