class NewRelic::Agent::DistributedTracing::Monitor
Public Instance Methods
on_before_call(request)
click to toggle source
# File lib/new_relic/agent/monitors/distributed_tracing_monitor.rb, line 15 def on_before_call(request) unless NewRelic::Agent.config[:'distributed_tracing.enabled'] NewRelic::Agent.logger.warn('Not configured to accept distributed trace headers') return end return unless txn = Tracer.current_transaction txn.distributed_tracer.accept_incoming_request(request) end
on_finished_configuring(events)
click to toggle source
# File lib/new_relic/agent/monitors/distributed_tracing_monitor.rb, line 9 def on_finished_configuring(events) return unless NewRelic::Agent.config[:'distributed_tracing.enabled'] events.subscribe(:before_call, &method(:on_before_call)) end