app/controllers/application_controller.rb
def append_info_to_payload(payload)
    super

    # Use the request ID generated by the aamzon ALB, if available
    payload[:request_id] = request.headers.fetch("X-Amzn-Trace-Id", request.request_id)
    payload[:remote_ip] = request.remote_ip
    payload[:user_agent] = request.user_agent
  end
# capture some extra data so we can log it with lograge
capture some extra data so we can log it with lograge
capture some extra data so we can log it with lograge
def append_info_to_payload(payload)
    super
    payload[:request_id] = request.headers.fetch("X-Amzn-Trace-Id", request.request_id)
    payload[:remote_ip] = request.remote_ip
    payload[:user_agent] = request.user_agent
  end
def append_info_to_payload ( payload ) super payload [ :request_id ] = request . headers . fetch ( "X-Amzn-Trace-Id" , request . request_id ) payload [ :remote_ip ] = request . remote_ip payload [ :user_agent ] = request . user_agent end
capture some extra data so we can log it with lograge
capture some extra data so we can log it with lograge
# Use the request ID generated by the aamzon ALB, if available
payload