Method: NewRelic::Agent::DistributedTracing::CrossAppMonitor#on_finished_configuring

Defined in:
lib/new_relic/agent/monitors/cross_app_monitor.rb

#on_finished_configuring(events) ⇒ Object

[View source]

22
23
24
25
26
27
28
29
30
31
# File 'lib/new_relic/agent/monitors/cross_app_monitor.rb', line 22

def on_finished_configuring(events)
  if CrossAppTracing.cross_app_enabled?
    Deprecator.deprecate('cross_application_tracer')
    ::NewRelic::Agent.logger.warn(
      '[DEPRECATED] Cross application tracing is enabled. Distributed tracing is replacing cross application tracing as the default means of tracing between services. To continue using cross application tracing, enable it with `cross_application_tracer.enabled: true` and `distributed_tracing.enabled: false`'
    )
  end

  register_event_listeners(events)
end