Commit 93005b4e authored by Stan Hu's avatar Stan Hu

Add User-Agent to production_json.log

This will help production gain more visibility which browsers may be
having issues.
parent 9dd34eac
Pipeline #29511323 passed with stages
in 45 minutes and 30 seconds
......@@ -110,6 +110,7 @@ class ApplicationController < ActionController::Base
def append_info_to_payload(payload)
payload[:ua] = request.env["HTTP_USER_AGENT"]
payload[:remote_ip] = request.remote_ip
logged_user = auth_user
title: Add User-Agent to production_json.log
merge_request: 21546
type: other
......@@ -22,7 +22,8 @@ unless Sidekiq.server?
params: params,
remote_ip: event.payload[:remote_ip],
user_id: event.payload[:user_id],
username: event.payload[:username]
username: event.payload[:username],
ua: event.payload[:ua]
gitaly_calls = Gitlab::GitalyClient.get_request_count
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment