We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f31c2 commit aa6f67aCopy full SHA for aa6f67a
prometheus/histogram.go
@@ -31,6 +31,12 @@ import (
31
// sparseBounds for the frac of observed values. Only relevant for schema > 0.
32
// Position in the slice is the schema. (0 is never used, just here for
33
// convenience of using the schema directly as the index.)
34
+//
35
+// TODO(beorn7): Currently, we do a binary search into these slices. There are
36
+// ways to turn it into a small number of simple array lookups. It probably only
37
+// matters for schema 5 and beyond, but should be investigated. See this comment
38
+// as a starting point:
39
+// https://github.com/open-telemetry/opentelemetry-specification/issues/1776#issuecomment-870164310
40
var sparseBounds = [][]float64{
41
// Schema "0":
42
[]float64{0.5},
0 commit comments