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

Update README.md #23

Closed rwojnarowski closed 5 years ago

rwojnarowski commented 5 years ago

It's misleading where to put Barnes dependencies

require 'barnes' 
Barnes.start

if you do this in initializers, puma metrics won't show up on heroku metrics page.

schneems commented 5 years ago

Thanks for the PR! That code should go in a before_fork block, though only if you're using workers. Can you update to that?

schneems commented 5 years ago

Thanks a ton!