Skip to content

Commit 79d7a03

Browse files
jlawriestyblope
authored andcommitted
Ensure all http.server.duration metrics have the same description (open-telemetry#738)
1 parent 8e42be5 commit 79d7a03

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/otelcollector/otelcol-config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ processors:
3838
batch:
3939
spanmetrics:
4040
metrics_exporter: prometheus
41+
# temporary measure until description is fixed in .NET
42+
transform:
43+
metric_statements:
44+
- context: metric
45+
statements:
46+
- set(description, "Measures the duration of inbound HTTP requests") where name == "http.server.duration"
4147

4248
service:
4349
pipelines:
@@ -49,5 +55,5 @@ service:
4955
exporters: [logging, otlp/jaeger, instana]
5056
metrics:
5157
receivers: [otlp]
52-
processors: [batch]
58+
processors: [transform, batch]
5359
exporters: [prometheus, logging, otlp/instana]

0 commit comments

Comments
 (0)