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.
Initialize
StatsD.singleton_client
(which handles method calls to the StatsD singleton) to a new client ifSTATSD_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.