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

Passenger support? #41

Open martinlevesque opened 1 year ago

martinlevesque commented 1 year ago

I was wondering if this gem can be used with Passenger ( https://github.com/phusion/passenger ) to have heroku language runtime metrics working ( https://devcenter.heroku.com/articles/language-runtime-metrics-ruby )?

Did a quick test with the required configs, and before_fork is not available with Passenger, which makes it crashes. Can the gem works with passenger by having the following initializer:

require 'barnes'

Barnes.start

?