Skip to content

Commit 654b9a7

Browse files
authored
Fix zero value in task permit histogram metrics (#1441)
What changed? add zero value in the histogram buckets Why? Users are confused on the zero value being 10 instead of 0 when they are looking at the passive side usage.
1 parent 1785f78 commit 654b9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/internal_worker_base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const (
5353

5454
var (
5555
pollOperationRetryPolicy = createPollRetryPolicy()
56-
concurrentTaskHistogramBuckets = tally.ValueBuckets{10, 20, 50, 100, 150, 200, 400, 600, 800, 1000, 1500, 2000, 3000, 5000, 10000}
56+
concurrentTaskHistogramBuckets = tally.ValueBuckets{0, 10, 20, 50, 100, 150, 200, 400, 600, 800, 1000, 1500, 2000, 3000, 5000, 10000}
5757
)
5858

5959
var errShutdown = errors.New("worker shutting down")

0 commit comments

Comments
 (0)