Class: NewRelic::Agent::DistributedTracing::Monitor
- Inherits:
-
InboundRequestMonitor
- Object
- InboundRequestMonitor
- NewRelic::Agent::DistributedTracing::Monitor
- Defined in:
- lib/new_relic/agent/monitors/distributed_tracing_monitor.rb
Instance Attribute Summary
Attributes inherited from InboundRequestMonitor
Instance Method Summary collapse
Methods inherited from InboundRequestMonitor
#deserialize_header, #initialize, #setup_obfuscator
Constructor Details
This class inherits a constructor from NewRelic::Agent::InboundRequestMonitor
Instance Method Details
#on_before_call(request) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# 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 |