rcrowley / go-metrics

Go port of Coda Hale's Metrics library
Other
3.46k stars 494 forks source link

StatHat uploader uses PostEZCount incorrectly #154

Open akalin-keybase opened 8 years ago

akalin-keybase commented 8 years ago

PostEZCount expects a delta, but go-metrics gives it the total counter value.

A short-term fix would be to maintain a map from counters (interface { Count() int64 }) to latest uploaded value, and use that to calculate deltas.

This bug seems like it's been around for a while!