From bd31bcda9de86a53f39e8dc248184698710409ff Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 21 Apr 2025 20:06:59 +0800 Subject: [PATCH] fix(opentelemetry): simplify log body assignment by removing unnecessary type conversion Signed-off-by: zhenyus --- .../authentication/templates/authentication/opentelemetry.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index 91c36044..c9b20fef 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -93,7 +93,7 @@ spec: - set(resource.attributes["body_json"]["kubernetes"]["deployment"], resource.attributes["k8s.deployment.name"]) - set(resource.attributes["body_json"]["kubernetes"]["node"], resource.attributes["k8s.node.name"]) - set(resource.attributes["body_json"]["kubernetes"]["namespace"], resource.attributes["k8s.namespace.name"]) - - set(log.body, String(resource.attributes["body_json"])) + - set(log.body, resource.attributes["body_json"]) - delete_key(resource.attributes, "body_json") batch: send_batch_size: 5