A statsd client library for Crystal.
Add this to your application's shard.yml
:
dependencies:
statsd:
github: miketheman/statsd.cr
require "statsd"
statsd = Statsd::Client.new
statsd.increment "myapp.login_page", 1
# Datadog-compliant statsd tags:
statsd.increment "page.views", tags: ["page:login", "app:myapp"]
See examples/test.cr
for more.
git checkout -b my-new-feature
)make spec
git commit -am 'Add some feature'
)git push origin my-new-feature
)Inspired by syslog.cr and statsd.