diff --git a/processor/deltatocumulativeprocessor/internal/data/add.go b/processor/deltatocumulativeprocessor/internal/data/add.go index 259ff701288a..d6b3ae6226bc 100644 --- a/processor/deltatocumulativeprocessor/internal/data/add.go +++ b/processor/deltatocumulativeprocessor/internal/data/add.go @@ -81,8 +81,8 @@ func getDeltaScale(arel, brel pmetric.ExponentialHistogramDataPointBuckets) expo var deltaScale expo.Scale for up-lo > maxBuckets { - lo >>= 1 - up >>= 1 + lo /= 2 + up /= 2 deltaScale++ } diff --git a/processor/deltatocumulativeprocessor/testdata/exponential/1.test b/processor/deltatocumulativeprocessor/testdata/exponential/1.test index 8aa87775ae80..4af8da850cfb 100644 --- a/processor/deltatocumulativeprocessor/testdata/exponential/1.test +++ b/processor/deltatocumulativeprocessor/testdata/exponential/1.test @@ -42,7 +42,7 @@ resourceMetrics: scale: 1 zeroCount: 0 positive: - bucketCounts: [0,0,0,0,0] + bucketCounts: [] -- out -- resourceMetrics: