From 30a197eb95c5ce0779a0c33be53c77ab77c02e9e Mon Sep 17 00:00:00 2001 From: David Hope Date: Fri, 12 Jul 2024 14:14:49 -0400 Subject: [PATCH] deal with multiple configs --- kubernetes/elastic-helm/configmap-elastic.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kubernetes/elastic-helm/configmap-elastic.yaml b/kubernetes/elastic-helm/configmap-elastic.yaml index baf75c7617..3376996de5 100644 --- a/kubernetes/elastic-helm/configmap-elastic.yaml +++ b/kubernetes/elastic-helm/configmap-elastic.yaml @@ -31,10 +31,11 @@ data: - key: http.url action: extract pattern: '^(?Phttps?://[^/]+(?:/[^/]+)*)(?:/(?P[^/?]+/[^/?]+))(?:\?|/?$)' - span: - name: - from_attributes: ['url.truncated.path'] - separator: "::" + transform: + trace_statements: + - context: span + statements: + - set(name, concat(attributes["url.truncated.path"], "::", name)) receivers: httpcheck/frontendproxy: targets: @@ -78,7 +79,7 @@ data: processors: - resource - attributes - - span + - transform - batch receivers: - otlp