Skip to content

Commit

Permalink
Ensure all http.server.duration metrics have the same description
Browse files Browse the repository at this point in the history
  • Loading branch information
jlawrie committed Feb 9, 2023
1 parent 55912a2 commit 44b0880
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/otelcollector/otelcol-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -32,5 +38,5 @@ service:
exporters: [logging, otlp]
metrics:
receivers: [otlp]
processors: [batch]
processors: [transform, batch]
exporters: [prometheus, logging]

0 comments on commit 44b0880

Please sign in to comment.