Skip to content

Commit

Permalink
fix(fix-missing-auth-header-logs-in-ecs-format): Add auth header to E…
Browse files Browse the repository at this point in the history
…CS logs metadata (#46)
  • Loading branch information
papey authored Dec 18, 2024
1 parent d908e39 commit a10742b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neurow/lib/neurow/ecs_log_formatter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ defmodule Neurow.EcsLogFormatter do
|> with_optional_attribute(metadata[:trace_id], "trace.id")
|> with_optional_attribute(metadata[:error_code], "error.code")
|> with_optional_attribute(metadata[:client_ip], "client.ip")
|> with_optional_attribute(metadata[:authorization_header], "http.request.authorization")
|> :jiffy.encode()
|> newline()
end
Expand Down

0 comments on commit a10742b

Please sign in to comment.