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.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Test your changes with
make spec
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Inspired by syslog.cr and statsd.
- @miketheman Mike Fiedler - creator, maintainer