Method: NewRelic::Agent::TransactionEventRecorder#record
- Defined in:
- lib/new_relic/agent/transaction_event_recorder.rb
permalink #record(payload) ⇒ Object
[View source]
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/new_relic/agent/transaction_event_recorder.rb', line 23 def record(payload) return unless NewRelic::Agent.config[:'transaction_events.enabled'] if synthetics_event?(payload) event = create_event(payload) result = synthetics_event_aggregator.record(event) transaction_event_aggregator.record(event: event) if result.nil? else transaction_event_aggregator.record(priority: payload[:priority]) { create_event(payload) } end end |