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
// Prometheus native histograms support scales in the range [-4, 8]
286
+
scale:=dp.Scale
287
+
ifscale<-4 {
288
+
// Reject scales below -4 as they cannot be represented in Prometheus
289
+
otel.Handle(fmt.Errorf(
290
+
"exponential histogram scale %d is below minimum supported scale -4, skipping data point",
291
+
scale))
292
+
continue
293
+
}
294
+
ifscale>8 {
295
+
scale=8
296
+
}
297
+
285
298
// From spec: note that Prometheus Native Histograms buckets are indexed by upper boundary while Exponential Histograms are indexed by lower boundary, the result being that the Offset fields are different-by-one.
0 commit comments