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

Improve flushing of batched datagrams on process exit #288

Closed casperisfine closed 3 years ago

casperisfine commented 3 years ago

Fix: https://github.com/Shopify/statsd-instrument/issues/287

Of course if the process receive SIGKILL there's little we can do, but if the exit handlers are properly executed, the finalizer should be good enough to flush the events.