Shopify / statsd-instrument

A StatsD client for Ruby apps. Provides metaprogramming methods to inject StatsD instrumentation into your code.
http://shopify.github.io/statsd-instrument
MIT License
570 stars 94 forks source link

Add support for Client#event and Client#service_check #196

Closed wvanbergen closed 4 years ago

wvanbergen commented 4 years ago

Those methods are only supported in DogStatsD, so will only be available when using the DogStatsD datagram builder. See https://docs.datadoghq.com/developers/dogstatsd/datagram_shell/ for the datagram format.

Questions:

TODO in followups or in this PR:

wvanbergen commented 4 years ago

Prefixes are now supported.

After refactoring the current implementation of StatsD.event and StatsD.service_check to make sure they are actually according to spec, I was able to add a compatibility test that affirms the different implementations now behave the same.

This is ready for a final look.