Skip to content

Commit a10742b

Browse files
authored
fix(fix-missing-auth-header-logs-in-ecs-format): Add auth header to ECS logs metadata (#46)
1 parent d908e39 commit a10742b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neurow/lib/neurow/ecs_log_formatter.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ defmodule Neurow.EcsLogFormatter do
3838
|> with_optional_attribute(metadata[:trace_id], "trace.id")
3939
|> with_optional_attribute(metadata[:error_code], "error.code")
4040
|> with_optional_attribute(metadata[:client_ip], "client.ip")
41+
|> with_optional_attribute(metadata[:authorization_header], "http.request.authorization")
4142
|> :jiffy.encode()
4243
|> newline()
4344
end

0 commit comments

Comments
 (0)