From b60c5c932499b27a713b05ff56d37a0551070d12 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 22 Sep 2025 20:22:40 +0800 Subject: [PATCH] simplify: remove ParseJSON operations from OpenTelemetry transform - Remove complex JSON parsing operations that may cause issues - Keep only essential resource attribute mapping - This should help logs be properly processed and sent to Loki --- .../templates/authentication/opentelemetry.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index 0e7a22f1..9223071a 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -86,16 +86,6 @@ spec: - set(resource.attributes["kubernetes_node_name"], resource.attributes["k8s.node.name"]) - set(resource.attributes["kubernetes_deployment_name"], resource.attributes["k8s.deployment.name"]) - set(resource.attributes["kubernetes_namespace"], resource.attributes["k8s.namespace.name"]) - - set(resource.attributes["body_json"], ParseJSON(log.body)) - - set(resource.attributes["body_json"]["kubernetes"]["pod"], resource.attributes["k8s.pod.name"]) - - set(resource.attributes["body_json"]["kubernetes"]["namespace"], resource.attributes["k8s.namespace.name"]) - - set(resource.attributes["body_json"]["kubernetes"]["pod_ip"], resource.attributes["k8s.pod.ip"]) - - set(resource.attributes["body_json"]["kubernetes"]["pod_uid"], resource.attributes["k8s.pod.uid"]) - - 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, resource.attributes["body_json"]) - - delete_key(resource.attributes, "body_json") batch: send_batch_size: 5 timeout: 10s