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

Support the new client when capturing datagrams from the singleton client #214

Closed wvanbergen closed 4 years ago

wvanbergen commented 4 years ago

The big difference is that the old capture method will return a bunch of StatsD::Instrument::Metric instances, while the new client will give a bunch of StatsD::Instrument::Datagram instances. These objects are not 100% compatible. The behave closely enough to pass the tests that we have for them, but I'll see if I can find a can run the Shopify CI suite to see if we depend on implementation details.

rafaelfranca commented 4 years ago

LGTM. Let me know when it is out of draft so I can approve.

wvanbergen commented 4 years ago

This is ready for review now. We might need some more compatibility fixes but the latest changes have addressed a vast majority of them.