honeybadger-io / honeybadger-ruby

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

Change `events.ignored` array configuration setting to allow objects #569

Closed roelbondoc closed 3 months ago

roelbondoc commented 4 months ago

Currently you can configure the gem to ignore an event_type like this:

events:
  ignore:
    - 'sql.active_record'

By allowing objects in the array, we can allow for a bit more advance filtering:

events:
  ignore:
    - event_type: 'sql.active_record'
      query: !ruby/regex '/solid_queue/i'

This will also open up the possibilities to have a list of default events to ignore that matches a specific pattern, just like how we have a list of default exceptions to ignore.