Skip to content

Commit d355990

Browse files
committed
Ensure all http.server.duration metrics have the same description (open-telemetry#738)
1 parent 1b6f32e commit d355990

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
@@ -23,6 +23,12 @@ processors:
2323
batch:
2424
spanmetrics:
2525
metrics_exporter: prometheus
26+
# temporary measure until description is fixed in .NET
27+
transform:
28+
metric_statements:
29+
- context: metric
30+
statements:
31+
- set(description, "Measures the duration of inbound HTTP requests") where name == "http.server.duration"
2632

2733
service:
2834
pipelines:
@@ -32,5 +38,5 @@ service:
3238
exporters: [logging, otlp]
3339
metrics:
3440
receivers: [otlp]
35-
processors: [batch]
41+
processors: [transform, batch]
3642
exporters: [prometheus, logging]

0 commit comments

Comments
 (0)