Method: NewRelic::Agent::Instrumentation::RackBuilder#deferred_dependency_check

Defined in:
lib/new_relic/agent/instrumentation/rack/instrumentation.rb

#deferred_dependency_checkObject


19
20
21
22
23
24
25
26
27
# File 'lib/new_relic/agent/instrumentation/rack/instrumentation.rb', line 19

def deferred_dependency_check
  return if self.class._nr_deferred_detection_ran

  NewRelic::Agent.logger.info('Doing deferred dependency-detection before Rack startup')
  DependencyDetection.detect!
  self.class._nr_deferred_detection_ran = true
  NewRelic::Control::SecurityInterface.instance.wait = false
  NewRelic::Control::SecurityInterface.instance.init_agent
end