From ca14dc8a0978719aaa17b47875bdd3ebaf683663 Mon Sep 17 00:00:00 2001 From: James Lawrie Date: Thu, 9 Feb 2023 11:45:21 -0500 Subject: [PATCH] Ensure all http.server.duration metrics have the same description --- src/otelcollector/otelcol-config.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/otelcollector/otelcol-config.yml b/src/otelcollector/otelcol-config.yml index 64e12fe0f5..6d8b088471 100644 --- a/src/otelcollector/otelcol-config.yml +++ b/src/otelcollector/otelcol-config.yml @@ -23,6 +23,12 @@ processors: batch: spanmetrics: metrics_exporter: prometheus + # temporary measure until description is fixed in .NET + transform: + metric_statements: + - context: metric + statements: + - set(description, "Measures the duration of inbound HTTP requests") where name == "http.server.duration" service: pipelines: @@ -32,5 +38,5 @@ service: exporters: [logging, otlp] metrics: receivers: [otlp] - processors: [batch] + processors: [transform, batch] exporters: [prometheus, logging]