Method: TingYun::Agent#disable_all_tracing

Defined in:
lib/ting_yun/agent.rb

#disable_all_tracingObject

Yield to the block without collecting any metrics or traces in any of the subsequent calls. If executed recursively, will keep track of the first entry point and turn on tracing again after leaving that block. This uses the thread local TransactionState.



170
171
172
173
174
175
176
177
178
# File 'lib/ting_yun/agent.rb', line 170

def disable_all_tracing
  return yield unless agent
  begin
    agent.push_trace_execution_flag(false)
    yield
  ensure
    agent.pop_trace_execution_flag
  end
end