Skip to content

Commit

Permalink
fix: reduce time bucket size (#1143)
Browse files Browse the repository at this point in the history
* fix: reduce time bucket size
  • Loading branch information
birdychang authored Feb 25, 2023
1 parent f42e6f3 commit 5ece2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"go.opencensus.io/tag"
)

var defaultMillisecondsDistribution = view.Distribution(0.01, 0.05, 0.1, 0.3, 0.6, 0.8, 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, 30000, 50000, 100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000, 10000000)
var defaultMillisecondsDistribution = view.Distribution(0.01, 0.1, 1, 2, 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000, 10000000, 10000000)

var (
Version, _ = tag.NewKey("version")
Expand Down Expand Up @@ -203,7 +203,7 @@ var DefaultViews = []*view.View{
{
Measure: PersistDuration,
Aggregation: defaultMillisecondsDistribution,
TagKeys: []tag.Key{TaskType, Table, ActorCode},
TagKeys: []tag.Key{TaskType, Table},
},
{
Measure: DBConns,
Expand Down

0 comments on commit 5ece2fa

Please sign in to comment.