Module: NewRelic::Agent::Instrumentation::ConcurrentRuby::Prepend

Includes:
NewRelic::Agent::Instrumentation::ConcurrentRuby
Defined in:
lib/new_relic/agent/instrumentation/concurrent_ruby/prepend.rb

Constant Summary

Constants included from NewRelic::Agent::Instrumentation::ConcurrentRuby

INSTRUMENTATION_NAME, SEGMENT_NAME

Instance Method Summary collapse

Methods included from NewRelic::Agent::Instrumentation::ConcurrentRuby

#add_task_tracing

Instance Method Details

#post(*args, &task) ⇒ Object



10
11
12
13
14
15
# File 'lib/new_relic/agent/instrumentation/concurrent_ruby/prepend.rb', line 10

def post(*args, &task)
  return super(*args, &task) unless NewRelic::Agent::Tracer.tracing_enabled?

  traced_task = add_task_tracing(&task)
  super(*args, &traced_task)
end