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

Client#measure: raise ArgumentError if neither a block or value is provided #245

Closed wvanbergen closed 4 years ago

wvanbergen commented 4 years ago

This fixes a small compatibility issue with the legacy client. This also applies to Client#distribition

wvanbergen commented 4 years ago

Actually, I think I will remove this from the regular client, and move this to "strict mode" instead. It's kind of pointless to check this for every StatsD metric in production and pay the performance penalty. Strict mode exists to find these kinds of things.