From c97b8bcdede133eeb82e4ae6911fca11391bc97e Mon Sep 17 00:00:00 2001 From: Bill Kayser Date: Mon, 29 Mar 2010 16:33:04 -0700 Subject: [PATCH] Clear stats on resque job --- lib/rpm_contrib/instrumentation/resque.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rpm_contrib/instrumentation/resque.rb b/lib/rpm_contrib/instrumentation/resque.rb index b83b27d..cc2e9e0 100644 --- a/lib/rpm_contrib/instrumentation/resque.rb +++ b/lib/rpm_contrib/instrumentation/resque.rb @@ -18,6 +18,7 @@ module ResqueInstrumentation class_name = 'Resque::Job' end name = 'process' + NewRelic::Agent.reset_stats if NewRelic::Agent.respond_to? :reset_stats perform_action_with_newrelic_trace(:name => name, :class_name => class_name, :category => 'OtherTransaction/ResqueJob') do old_process_method.bind(self).call(*args)