You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
m, err:=prometheus.NewConstHistogram(desc, dp.Count, float64(dp.Sum), buckets, values...)
There is no NewConstNativeHistogram in the prometheus client. We would currently need to implement the prometheus.Metric interface directly, which is a bit more work.
The text was updated successfully, but these errors were encountered:
Problem Statement
We currently drop exponential histograms in the prometheus exporter:
opentelemetry-go/exporters/prometheus/exporter.go
Lines 226 to 239 in 48fedfa
Proposed Solution
We should convert them to prometheus native histograms per https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/compatibility/prometheus_and_openmetrics.md#exponential-histograms
Additional Context
Related to open-telemetry/opentelemetry-collector-contrib#33703
This is currently difficult to do because we use prometheus.NewConstHistogram here:
opentelemetry-go/exporters/prometheus/exporter.go
Line 256 in 48fedfa
There is no NewConstNativeHistogram in the prometheus client. We would currently need to implement the prometheus.Metric interface directly, which is a bit more work.
The text was updated successfully, but these errors were encountered: