From 802b9bf8ba2fe770b97651780cc54ab185b4e2fb Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 21 Apr 2025 17:07:42 +0800 Subject: [PATCH] fix(opentelemetry): correct attribute path for service and deployment in log transformation Signed-off-by: zhenyus --- .../templates/authentication/opentelemetry.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index 9e0a8eea..d8b5bb1b 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -48,8 +48,8 @@ spec: - context: log statements: - set(log.body["kubernetes"], log.attributes["kubernetes"]) - - set(log.attributes["service.name"], log.attributes["context"]["app"]) - - set(log.attributes["deployment.environment"], log.attributes["context"]["env"]) + - set(log.attributes["service"]["name"], log.attributes["context"]["app"]) + - set(log.attributes["deployment"]["environment"], log.attributes["context"]["env"]) batch: send_batch_size: 5 timeout: 10s