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: add event stats for sidekiq and sq #638

Closed roelbondoc closed 2 weeks ago

roelbondoc commented 2 weeks ago

Similar to Karafka's stats event, this adds the collected cluster based stats as a wide event for Sidekiq and SolidQueue. The previous aggregated metrics can be toggled on, while the new events can be toggled off.

# Turn off all events for Sidekiq and SolidQueue
sidekiq:
  insights:
    events: false
solid_queue:
  insights:
    events: false

# Turn on all aggregated metrics for Sidekiq and SolidQueue
sidekiq:
  insights:
    metrics: true
solid_queue:
  insights:
    metrics: true

In addition, the polling interval has been decreased to 5 seconds to allow for up to date readings.

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.