We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5819ef1 commit 059be17Copy full SHA for 059be17
lib/error_tracker/integrations/plug.ex
@@ -90,7 +90,7 @@ defmodule ErrorTracker.Integrations.Plug do
90
"request.query" => conn.query_string,
91
"request.method" => conn.method,
92
"request.ip" => remote_ip(conn),
93
- "request.headers" => Map.new(conn.req_headers),
+ "request.headers" => conn.req_headers |> Map.new() |> Map.drop(["cookie"]),
94
# Depending on the error source, the request params may have not been fetched yet
95
"request.params" => unless(is_struct(conn.params, Plug.Conn.Unfetched), do: conn.params)
96
}
0 commit comments