PositiveBucketIterator returns a BucketIterator to iterate over all positive buckets in ascending order (starting next to the zero bucket and going up).
()
| 214 | // PositiveBucketIterator returns a BucketIterator to iterate over all positive |
| 215 | // buckets in ascending order (starting next to the zero bucket and going up). |
| 216 | func (h *Histogram) PositiveBucketIterator() BucketIterator[uint64] { |
| 217 | it := newRegularBucketIterator(h.PositiveSpans, h.PositiveBuckets, h.Schema, true, h.CustomValues) |
| 218 | return &it |
| 219 | } |
| 220 | |
| 221 | // NegativeBucketIterator returns a BucketIterator to iterate over all negative |
| 222 | // buckets in descending order (starting next to the zero bucket and going down). |