lib/ting_yun/instrumentation/rake.rb in tingyun_rpm-1.6.1 vs lib/ting_yun/instrumentation/rake.rb in tingyun_rpm-3.2.0

- old
+ new

@@ -26,11 +26,11 @@ end TingYun::Agent::Instrumentation::RakeInstrumentation.before_invoke_transaction(self) state = TingYun::Agent::TransactionState.tl_get - TingYun::Agent::Transaction.wrap(state, "BackgroundAction/Rake/invoke/#{name}", :rake) do + TingYun::Agent::Transaction.wrap(state, "TaskAction/Rake/invoke/#{name}", :rake) do invoke_without_tingyun(*args) end end end end @@ -57,9 +57,10 @@ rescue => e TingYun::Agent.logger.error("Error during Rake task invoke", e) end def self.should_trace? name + return ::TingYun::Agent.config[:'rake.tasks'].include?(name) if ::TingYun::Agent.config[:'rake.tasks'].any? return !TingYun::Agent.config[:'rake.black.tasks'].include?(name) if ::TingYun::Agent.config[:'rake.black.tasks'].any? return false end \ No newline at end of file