Skip to content

Commit

Permalink
Merge pull request #12414 from hennevogel/feature/track-more-exceptions
Browse files Browse the repository at this point in the history
Instrument more exceptions
  • Loading branch information
hennevogel committed Apr 22, 2022
2 parents bf91fdf + 10732a4 commit 88ef28b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/config/initializers/airbrake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def ignore_by_class?(notice)
end

def ignore_exception?(notice)
notice[:errors].pluck(:type).each do |type|
InfluxDB::Rails.instrument('exceptions', tags: { exception: type }, values: { value: 1 })
end
ignore_by_class?(notice) || ignore_by_class_and_message?(notice)
end

Expand Down

0 comments on commit 88ef28b

Please sign in to comment.