module NewRelic::Agent::Instrumentation::MonitoredThread
Attributes
Public Instance Methods
Source
# File lib/new_relic/agent/instrumentation/thread/instrumentation.rb, line 16 def add_thread_tracing(*args, &block) return block if !NewRelic::Agent::Tracer.thread_tracing_enabled? NewRelic::Agent::Tracer.thread_block_with_current_transaction(&block) end
Source
# File lib/new_relic/agent/instrumentation/thread/instrumentation.rb, line 11 def initialize_with_newrelic_tracing @nr_parent_key = NewRelic::Agent::Tracer.current_segment_key yield end