From 12330d4de544a79b6c773cf81fa9e87159d4377e Mon Sep 17 00:00:00 2001 From: Marten Veldthuis <marten@veldthuis.com> Date: Mon, 23 May 2022 10:58:25 +0200 Subject: [PATCH] Remove is_ignored_exception, just let Appsignal library figure that out --- lib/roqua/support/errors.rb | 2 +- spec/roqua/support/errors_spec.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/roqua/support/errors.rb b/lib/roqua/support/errors.rb index 151042e..42fa775 100644 --- a/lib/roqua/support/errors.rb +++ b/lib/roqua/support/errors.rb @@ -69,7 +69,7 @@ module Roqua end def notify_appsignal?(exception) - const_defined?(:Appsignal) && Appsignal.active? && !Appsignal.is_ignored_exception?(exception) + const_defined?(:Appsignal) && Appsignal.active? end def notify_appsignal(exception, labels, namespace) diff --git a/spec/roqua/support/errors_spec.rb b/spec/roqua/support/errors_spec.rb index 625ae54..068f6b1 100644 --- a/spec/roqua/support/errors_spec.rb +++ b/spec/roqua/support/errors_spec.rb @@ -96,7 +96,6 @@ describe 'Error reporting' do before do Appsignal.config = Appsignal::Config.new(Dir.pwd, "test") allow(Appsignal).to receive(:active?).and_return(true) - allow(Appsignal).to receive(:is_ignored_exception?).and_return(false) allow(Appsignal).to receive(:agent).and_return(agent) end -- GitLab