Merge pull request #8548 from demarches-simplifiees/log_ip_and_correlation
feat(log): log ip et correlation id
This commit is contained in:
commit
7c872be29c
1 changed files with 3 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue