8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/appsignal/integrations/resque.rb', line 8
def around_perform_resque_plugin(*args)
Appsignal::Transaction.create(SecureRandom.uuid, ENV)
ActiveSupport::Notifications.instrument(
'perform_job.resque',
:class => self.to_s,
:method => 'perform'
) do
yield
end
rescue Exception => exception
unless Appsignal.is_ignored_exception?(exception)
Appsignal::Transaction.current.add_exception(exception)
end
raise exception
ensure
Appsignal::Transaction.current.complete!
end
|