**`histogram.findBucket(v float64) int`** (`prom_histogram.go:864-897`) — Finds which bucket an observation falls into using the upper bounds: ...
func (hc *histogramCounts) observe(v float64, bucket int, doSparse bool) // Classic bucket: atomic.AddUint64(&hc.buckets[bucket], 1) ...