From 513d4e57a55cb7074a42b7211eff46291d33c936 Mon Sep 17 00:00:00 2001 From: amvanbaren Date: Thu, 22 Feb 2024 16:31:34 +0200 Subject: [PATCH] Use old config props for resource attributes --- configuration/application.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/configuration/application.yml b/configuration/application.yml index 66474bd0..2e8ac7a6 100644 --- a/configuration/application.yml +++ b/configuration/application.yml @@ -76,11 +76,13 @@ management: tracing: sampling: probability: 1.0 # TODO lower to 0.1 for production - opentelemetry: - resource-attributes: - "[service.name]": ${spring.application.name} - "[deployment.environment]": ${ENVNAME} - "[service.instance.id]": ${HOSTNAME} + otlp: + metrics: + export: + resource-attributes: + "[service.name]": ${spring.application.name} + "[deployment.environment]": ${ENVNAME} + "[service.instance.id]": ${HOSTNAME} org: jobrunr: job-scheduler: