mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 12:27:52 +00:00
lower the StatsD sampling rate
This commit is contained in:
parent
c41f695e74
commit
1c5f374c1a
2 changed files with 2 additions and 2 deletions
|
|
@ -407,7 +407,7 @@ func (f *Fragment) setBit(rowID, columnID uint64) (changed bool, err error) {
|
|||
// Update the cache.
|
||||
f.cache.Add(rowID, bm.Count())
|
||||
|
||||
f.stats.Count("setBit", 1, 1.0)
|
||||
f.stats.Count("setBit", 1, 0.001)
|
||||
|
||||
return changed, nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
statsTags = append(statsTags, "useragent:"+r.UserAgent())
|
||||
|
||||
stats := h.Holder.Stats.WithTags(statsTags...)
|
||||
stats.Histogram("http."+endpointName, float64(dif), 1.0)
|
||||
stats.Histogram("http."+endpointName, float64(dif), 0.1)
|
||||
}
|
||||
|
||||
func (h *Handler) handleWebUI(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue