honeybadger-io / honeybadger-ruby

Ruby gem for reporting errors to honeybadger.io
https://docs.honeybadger.io/lib/ruby/
MIT License
251 stars 145 forks source link

feat: disable all workers in rails console #636

Closed roelbondoc closed 2 weeks ago

roelbondoc commented 2 weeks ago

As it turns out, the console callback is called after after_initialize config callback in the Railtie. This can still cause the metric worker to startup when it's not meant to. This change will shutdown the MetricsWorker and EventWorker when the Rails console is loaded.

Before submitting a pull request, please make sure the following is done:

  1. If you've fixed a bug or added code that should be tested, add tests!
  2. Run rake spec in the repository root.
  3. Use a pull request title that conforms to conventional commits.