heroku / barnes

Tell StatsD about request time, GC, objects and more. Latest Rails 4 and Ruby 2.1 support, and ancient Rails 2 and Ruby 1.8 support.
MIT License
0 stars 0 forks source link

Record Puma pool capacity value #15

Closed schneems closed 6 years ago

schneems commented 6 years ago

Related to https://github.com/puma/puma/pull/1579

schneems commented 6 years ago

I updated so that it does not report the pool capacity as "0" when in fact it is not present. I also pulled out some of the logic into a class that can be unit tested. I removed the map/reduce logic and made it increment a value instead.

I'm currently running this commit live in production with issuetriage. We likely need to figure out a way to get some integration style tests in the future.