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]
262
+
scale:=dp.Scale
263
+
ifscale<-4 {
264
+
// Reject scales below -4 as they cannot be represented in Prometheus
265
+
otel.Handle(fmt.Errorf(
266
+
"exponential histogram scale %d is below minimum supported scale -4, skipping data point",
267
+
scale))
268
+
continue
269
+
}
270
+
ifscale>8 {
271
+
scale=8
272
+
}
273
+
261
274
// 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