Skip to content

Commit

Permalink
fix: account or buckets count
Browse files Browse the repository at this point in the history
  • Loading branch information
0x416e746f6e committed May 27, 2024
1 parent c3a430d commit cbd1183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func setupLatencyBoundariesUs(ctx context.Context, cfg *config.Metrics) error {
latencyBoundariesUs = otelapi.WithExplicitBucketBoundaries(func() []float64 {
base := math.Exp(math.Log(float64(cfg.MaxLatencyUs)) / (float64(cfg.LatencyBucketsCount - 1)))
res := make([]float64, 0, cfg.LatencyBucketsCount)
for i := 0; i < 33; i++ {
for i := 0; i < cfg.LatencyBucketsCount; i++ {
res = append(res,
math.Round(2*math.Pow(base, float64(i)))/2,
)
Expand Down

0 comments on commit cbd1183

Please sign in to comment.