|
|
|
@ -220,6 +220,13 @@ func isValidAggregationTemporality(metric pmetric.Metric) bool {
|
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// addHistogramDataPoints adds OTel histogram data points to the corresponding Prometheus time series
|
|
|
|
|
// as classical histogram samples.
|
|
|
|
|
//
|
|
|
|
|
// Note that we can't convert to native histograms, since these have exponential buckets and don't line up
|
|
|
|
|
// with the user defined bucket boundaries of non-exponential OTel histograms.
|
|
|
|
|
// However, work is under way to resolve this shortcoming through a feature called native histograms custom buckets:
|
|
|
|
|
// https://github.com/prometheus/prometheus/issues/13485.
|
|
|
|
|
func (c *PrometheusConverter) addHistogramDataPoints(dataPoints pmetric.HistogramDataPointSlice, |
|
|
|
|
resource pcommon.Resource, settings Settings, baseName string) { |
|
|
|
|
for x := 0; x < dataPoints.Len(); x++ { |
|
|
|
|