From 32d9f41ee5d98ecab804c76aa9c0054fec76bf92 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 21 Apr 2025 19:48:24 +0800 Subject: [PATCH] fix(opentelemetry): update processor attributes to use environment variable values for improved metadata extraction Signed-off-by: zhenyus --- .../templates/authentication/opentelemetry.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index e736d117..4128e25e 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -58,22 +58,22 @@ spec: attributes: - action: insert key: k8s.node.name - from_env: KUBE_META_NODE_NAME + value: ${KUBE_META_NODE_NAME} - action: insert key: k8s.pod.name - from_env: KUBE_META_POD_NAME + value: ${KUBE_META_POD_NAME} - action: insert key: k8s.pod.ip - from_env: KUBE_META_POD_IP + value: ${KUBE_META_POD_IP} - action: insert key: k8s.pod.uid - from_env: KUBE_META_POD_UID + value: ${KUBE_META_POD_UID} - action: insert key: k8s.namespace.name - from_env: KUBE_META_NAMESPACE + value: ${KUBE_META_NAMESPACE} - action: insert key: k8s.deployment.name - from_env: KUBE_META_OBJECT_NAME + value: ${KUBE_META_OBJECT_NAME} transform: log_statements: - context: log