module NewRelic::Agent::Instrumentation::MonitoredFiber

Attributes

nr_parent_key[R]

Public Instance Methods

add_thread_tracing(&block) click to toggle source
# File lib/new_relic/agent/instrumentation/fiber/instrumentation.rb, line 14
def add_thread_tracing(&block)
  return block if !NewRelic::Agent::Tracer.thread_tracing_enabled?

  NewRelic::Agent::Tracer.thread_block_with_current_transaction(&block)
end
initialize_with_newrelic_tracing() { || ... } click to toggle source
# File lib/new_relic/agent/instrumentation/fiber/instrumentation.rb, line 9
def initialize_with_newrelic_tracing
  @nr_parent_key = NewRelic::Agent::Tracer.current_segment_key
  yield
end