Add "Accept-Language" header to sentry request metadata

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-04-21 10:33:42 +02:00
parent 74cece5796
commit 0c49ddc65b
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -11,7 +11,8 @@ defmodule Mobilizon.Web.RequestContext do
method: conn.method,
headers: %{
"User-Agent": conn |> Plug.Conn.get_req_header("user-agent") |> List.first(),
Referer: conn |> Plug.Conn.get_req_header("referer") |> List.first()
Referer: conn |> Plug.Conn.get_req_header("referer") |> List.first(),
"Accept-Language": conn |> Plug.Conn.get_req_header("accept-language") |> List.first()
},
query_string: conn.query_string,
env: %{