Skip to content

Commit

Permalink
metrics: Explain choice of TDigest compression parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tsenart committed Jul 12, 2018
1 parent e8136be commit b6cb4d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ func (m *Metrics) init() {
}

if m.latencies == nil {
// This compression parameter value is the recommended value
// for normal uses as per http://javadox.com/com.tdunning/t-digest/3.0/com/tdunning/math/stats/TDigest.html
m.latencies = newTdigestEstimator(100)
}

Expand Down

0 comments on commit b6cb4d6

Please sign in to comment.