Method: OneApm::Agent::CrossAppMonitor#set_transaction_custom_parameters

Defined in:
lib/one_apm/agent/cross_app/cross_app_monitor.rb

#set_transaction_custom_parameters(state) ⇒ Object



138
139
140
141
142
143
144
145
146
147
# File 'lib/one_apm/agent/cross_app/cross_app_monitor.rb', line 138

def set_transaction_custom_parameters(state)
  # We expect to get the before call to set the id (if we have it) before
  # this, and then write our custom parameter when the transaction starts
  OneApm::Manager.add_custom_parameters(:client_cross_process_id => state.client_cross_app_id) if state.client_cross_app_id

  referring_guid = client_referring_transaction_guid(state)
  if referring_guid
    OneApm::Manager.add_custom_parameters(:referring_transaction_guid => referring_guid)
  end
end