Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed4277b

Browse files
authored
fix(api): distribution metrics (#4615)
1 parent cdd056c commit ed4277b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

engine/api/observability/stats.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ import (
1414
)
1515

1616
var (
17-
DefaultSizeDistribution = view.Distribution(1024, 2048, 4096, 16384, 65536, 262144, 1048576, 4194304, 16777216, 67108864, 268435456, 1073741824, 4294967296)
18-
DefaultLatencyDistribution = view.Distribution(1, 2, 3, 4, 5, 6, 8, 10, 13, 16, 20, 25, 30, 40, 50, 65, 80, 100, 130, 160, 200, 250, 300, 400, 500, 650, 800, 1000, 2000, 5000, 10000, 20000, 50000, 100000)
17+
// DefaultSizeDistribution 25k, 100k, 250, 500, 1M, 1.5M, 5M, 10M,
18+
DefaultSizeDistribution = view.Distribution(25*1024, 100*1024, 250*1024, 500*1024, 1024*1024, 1.5*1024*1024, 5*1024*1024, 10*1024*1024)
19+
// DefaultLatencyDistribution 100ms, ...
20+
DefaultLatencyDistribution = view.Distribution(100, 200, 300, 400, 500, 750, 1000, 2000, 5000)
1921
)
2022

2123
const (

0 commit comments

Comments
 (0)