Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ensure all http.server.duration metrics have the same description #738

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]