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

Check wether the main thread is alive before restarting the dispatcher thread. #308

Closed casperisfine closed 2 years ago

casperisfine commented 2 years ago

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

If the main thread is already dead, we shouldn't try to respawn the thread. Instead we can send the datagram directly.

cc @MatthewRBruce, @Mangara. Would be nice to try to craft a test case for this using your small repro script.