Skip to content

Commit e92a8c7

Browse files
committed
Avoid the term 'sparse' where possible
This intends to avoid confusing users by the subtle difference between a native histogram and a sparse bucket. Signed-off-by: beorn7 <[email protected]>
1 parent d31f13b commit e92a8c7

File tree

3 files changed

+244
-234
lines changed

3 files changed

+244
-234
lines changed

examples/random/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ func main() {
6565
// one bucket to the text of (at most) 1.1. (The precise factor
6666
// is 2^2^-3 = 1.0905077...)
6767
rpcDurationsHistogram = prometheus.NewHistogram(prometheus.HistogramOpts{
68-
Name: "rpc_durations_histogram_seconds",
69-
Help: "RPC latency distributions.",
70-
Buckets: prometheus.LinearBuckets(*normMean-5**normDomain, .5**normDomain, 20),
71-
SparseBucketsFactor: 1.1,
68+
Name: "rpc_durations_histogram_seconds",
69+
Help: "RPC latency distributions.",
70+
Buckets: prometheus.LinearBuckets(*normMean-5**normDomain, .5**normDomain, 20),
71+
NativeHistogramBucketFactor: 1.1,
7272
})
7373
)
7474

0 commit comments

Comments
 (0)