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

Test before_fork behavior #20

Closed schneems closed 6 years ago

schneems commented 6 years ago

It turns out that we actually don't want barnes to start in the worker, but instead we want it on the "primary" process. This happens to occur by default if you're using Rails as we have a railtie that boots barnes when rails is loaded which executes in the "primary" process.

This test confirms this behavior but doesn't functionally change anything about barnes.