segmentio / stats

Go package for abstracting stats collection
https://godoc.org/github.com/segmentio/stats
MIT License
208 stars 32 forks source link

Add statstest package. #54

Closed f2prateek closed 7 years ago

f2prateek commented 7 years ago

The statstest package contains a single stats.Handler implementation that records its measures for inspection. It also implements stats.Flusher so tests can inspect number of times Flush was invoked.

Also removes replaces custom test handlers with the one from the new statstest package.

f2prateek commented 7 years ago

(going to use this in rpcstats).

f2prateek commented 7 years ago

Fixed build errors and rebased against master.