We added an Erlang module for StatHat. It’s in our github repo: github.com/stathat/shlibs.
Using it is very simple. Start the module:
{ok, Pid} = stathat:start().
Then you can do:
stathat:ez_count("erlang@stathat.com", "messages sent", 1).
or
stathat:ez_value("erlang@stathat.com", "request time", 92.194).
Thanks to Sam Elliot for reviewing this module and changing
it to a gen_server
.
We’d love to hear about your experience using this module. Please get in touch.