dogstatsd-elixir
dogstatsd-elixir copied to clipboard
Part of OTP supervision tree
Could you please re-write this to start automatically as part of the general OTP supervision tree? I think having one registered process would be great, to do:
:datadogsd.gauge(..
Will this work?
In application.ex
:
worker(DogStatsd, [%{:host => "localhost", :port => 8125}, [{:name, :dogstatsd}]])
Then in code
require DogStatsd
...
DogStatsd.increment(:dogstatsd, "page.views")