From b0a1e56a75856822b4cdf3ee02f0b5fb7550ef99 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 21 Apr 2025 16:43:24 +0800 Subject: [PATCH] fix(opentelemetry): correct syntax for accessing context attributes 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 de270e4e..bd4cba1b 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -71,8 +71,8 @@ spec: - context: log statements: - set(log.body["kubernetes"], log.attributes["kubernetes"]) - - set(log.attributes["app"], log.attributes["context"].app) - - set(log.attributes["environment"], log.attributes["context"].env) + - set(log.attributes["app"], log.attributes["context"]["app"]) + - set(log.attributes["environment"], log.attributes["context"]["env"]) batch: send_batch_size: 5 timeout: 10s