Open johnabass opened 3 years ago
sallusthttp already has a decorator for enriching loggers with http.Request information. However, it doesn't include HTTP headers.
sallusthttp
http.Request
We should add a way for sallusthttp.Builder to include HTTP headers, which would also involve filtering sensitive headers such as Authorization.
sallusthttp.Builder
Authorization
This is the specific code to be augmented:
https://github.com/xmidt-org/sallust/blob/main/sallusthttp/builder.go
sallusthttp
already has a decorator for enriching loggers withhttp.Request
information. However, it doesn't include HTTP headers.We should add a way for
sallusthttp.Builder
to include HTTP headers, which would also involve filtering sensitive headers such asAuthorization
.