From 72e7b6661252704a49206b0f92fad6d7aa89260b Mon Sep 17 00:00:00 2001 From: Tamir David Date: Sun, 20 Oct 2024 09:43:51 +0300 Subject: [PATCH] feat: set a default value for category attributes for kratos profile (#1593) Co-authored-by: Tamir David Co-authored-by: Amir Blum --- cli/cmd/resources/profiles/category-attributes.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli/cmd/resources/profiles/category-attributes.yaml b/cli/cmd/resources/profiles/category-attributes.yaml index 39257228d..793965bf8 100644 --- a/cli/cmd/resources/profiles/category-attributes.yaml +++ b/cli/cmd/resources/profiles/category-attributes.yaml @@ -636,6 +636,13 @@ spec: IsMatch(instrumentation_scope.name, "io.opentelemetry.elasticsearch-*") + # Add this fallback after all your trace_statements: + - set(attributes["odigos.category"], "Unknown") where attributes["odigos.category"] == nil + - set(attributes["odigos.sub_category"], "Unknown") where attributes["odigos.sub_category"] == nil + - set(attributes["odigos.transaction.type"], "Unknown") where attributes["odigos.transaction.type"] == nil + + + signals: - TRACES collectorRoles: