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
574 stars 97 forks source link

Enable strict mode if STATSD_STRICT_MODE is set. #211

Closed wvanbergen closed 5 years ago

wvanbergen commented 5 years ago

We now only use this environment variable for our own test suite. But it is very useful for applications that use this gem as well to quickly run tests in strict mode to find whether they are using the library in a deprecated way.

Updating your project's Gemfile to change the require for the statsd-instrument gem entry is more work. Also you have to be careful to only do it in test mode, and not to accidentally enable it in production.