diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c7c1093ef..f9ee04f23 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -198,7 +198,9 @@ class ApplicationController < ActionController::Base payload.merge!({ user_agent: request.user_agent, user_id: current_user&.id, - user_roles: current_user_roles + user_roles: current_user_roles, + client_ip: request.headers['X-Forwarded-For'], + request_id: request.headers['X-Request-ID'] }.compact) if browser.known?