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

Fix statsd_* metaprogramming reliance on positional arguments. #182

Closed wvanbergen closed 5 years ago

wvanbergen commented 5 years ago

Ref https://github.com/Shopify/statsd-instrument/pull/181

This fixes the statsd_* metaprogramming to accept both positional as well as keyword arguments, following the approach of #174. When calling the underlying StatsD metric method, we use keyword arguments so we pass our own Rubocop rules