Module: NewRelic::Agent::Instrumentation::MonitoredThread
- Included in:
- Prepend
- Defined in:
- lib/new_relic/agent/instrumentation/thread/chain.rb,
lib/new_relic/agent/instrumentation/thread/prepend.rb,
lib/new_relic/agent/instrumentation/thread/instrumentation.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#nr_parent_key ⇒ Object
readonly
Returns the value of attribute nr_parent_key.
Instance Method Summary collapse
Instance Attribute Details
#nr_parent_key ⇒ Object (readonly)
Returns the value of attribute nr_parent_key.
9 10 11 |
# File 'lib/new_relic/agent/instrumentation/thread/instrumentation.rb', line 9 def nr_parent_key @nr_parent_key end |
Instance Method Details
#add_thread_tracing(*args, &block) ⇒ Object
16 17 18 19 20 |
# 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 |
#initialize_with_newrelic_tracing ⇒ Object
11 12 13 14 |
# 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 |