Method: NewRelic::Agent::Transaction#append_synthetics_to

Defined in:
lib/new_relic/agent/transaction.rb

#append_synthetics_to(payload) ⇒ Object

[View source]

744
745
746
747
748
749
750
751
752
753
754
755
756
# File 'lib/new_relic/agent/transaction.rb', line 744

def append_synthetics_to(payload)
  return unless is_synthetics_request?

  payload[:synthetics_resource_id] = synthetics_resource_id
  payload[:synthetics_job_id] = synthetics_job_id
  payload[:synthetics_monitor_id] = synthetics_monitor_id
  payload[:synthetics_type] = synthetics_info('type')
  payload[:synthetics_initiator] = synthetics_info('initiator')

  synthetics_additional_attributes do |key, value|
    payload[key] = value
  end
end