Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Latest commit

 

History

History
31 lines (22 loc) · 866 Bytes

File metadata and controls

31 lines (22 loc) · 866 Bytes

batchhat

A batch sender to send metrics to StatHat using its bulk JSON API

This is helpful when sending a ton of metrics; in our case, sending up to hundreds of metrics per second per process. Sending so many metrics individually over HTTP adds a ton of overhead and taking up resources that could be used by your app.

Testing

# You must install ginko and the matching library gomega
$ go get github.com/onsi/ginkgo/ginkgo
$ go get github.com/onsi/gomega

# Navigate to the stathat directory
cd stathat 

# Run the tests!
$ go test -v -race -ginkgo.randomizeAllSpecs -ginkgo.trace -ginkgo.failFast

# While writing new tests, it's helpful to have ginkgo watch for changes
$ ginkgo watch -r --randomizeAllSpecs --trace --race

License

See the LICENSE file. (Spoiler alert: MIT License)