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

Automatically switch to the new client if STATSD_USE_NEW_CLIENT is set. #216

Closed wvanbergen closed 4 years ago

wvanbergen commented 4 years ago

Initialize StatsD.singleton_client (which handles method calls to the StatsD singleton) to a new client if STATSD_USE_NEW_CLIENT is set, rather than the legacy singleton client.

This makes it easy to test the new client on an existing codebase to verify compatibility.