From c4719493af8c464e9ec222293c9b81a8f2cd8902 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 22 Sep 2025 20:40:30 +0800 Subject: [PATCH] fix: add service.name attribute to prevent unknown_service classification - Add service.name resource attribute in addition to service_name - This should prevent logs from being classified as unknown_service in Loki - Keep both attributes for compatibility --- .../authentication/templates/authentication/opentelemetry.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml index fb7dc837..01d901a7 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/opentelemetry.yaml @@ -77,6 +77,7 @@ spec: log_statements: - context: log statements: + - set(resource.attributes["service.name"], "authentication") - set(resource.attributes["service_name"], "authentication") - set(resource.attributes["environment"], "alpha") - set(resource.attributes["environment"], "prod") where resource.attributes["k8s.namespace.name"] == "freeleaps-prod"