From fed98c42b1def814eb9d0e2cb3c1aba22b002c82 Mon Sep 17 00:00:00 2001 From: Christopher Davenport Date: Thu, 13 Jul 2023 13:52:34 -0700 Subject: [PATCH 1/2] Add additional allowed headers --- .../log4cats/contextlog/HttpStructuredContext.scala | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/core/src/main/scala/io/chrisdavenport/http4s/log4cats/contextlog/HttpStructuredContext.scala b/core/src/main/scala/io/chrisdavenport/http4s/log4cats/contextlog/HttpStructuredContext.scala index 4ac51f9..18f8ca2 100644 --- a/core/src/main/scala/io/chrisdavenport/http4s/log4cats/contextlog/HttpStructuredContext.scala +++ b/core/src/main/scala/io/chrisdavenport/http4s/log4cats/contextlog/HttpStructuredContext.scala @@ -99,7 +99,7 @@ object HttpStructuredContext { "DNT", "Tk", "Content-Disposition", "Content-Length", "Content-Type", "Content-Encoding", "Content-Language", "Content-Location", - "Forwarded", "X-Forwarded-For", "X-Forwarded-Host", "X-Forwarded-Proto", "Via", + "Forwarded", "X-Forwarded-For", "X-Forwarded-Host", "X-Forwarded-Proto", "X-Forwarded-Scheme", "X-Forwarded-Port", "Via", "Location", "From", "Host", "Referer", "Referer-Policy", "User-Agent", "Allow", "Server", @@ -146,7 +146,16 @@ object HttpStructuredContext { "Sec-CH-UA-Mobile", "Sec-CH-UA-Model", "Sec-CH-UA-Platform", - "Sec-CH-UA-Platform-Version" + "Sec-CH-UA-Platform-Version", + + "X-Real-Ip", + "X-Scheme", + + "B3", + "X-B3-Sampled", + "X-B3-SpanId", + "X-B3-TraceId", + ).map(CIString(_)) } } \ No newline at end of file From eaefdff4576af1ab51368e4e12a9f88a234ecf4a Mon Sep 17 00:00:00 2001 From: Christopher Davenport Date: Thu, 13 Jul 2023 14:16:57 -0700 Subject: [PATCH 2/2] Add runtime/start 1% header use US --- .../http4s/log4cats/contextlog/HttpStructuredContext.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/scala/io/chrisdavenport/http4s/log4cats/contextlog/HttpStructuredContext.scala b/core/src/main/scala/io/chrisdavenport/http4s/log4cats/contextlog/HttpStructuredContext.scala index 18f8ca2..19028e5 100644 --- a/core/src/main/scala/io/chrisdavenport/http4s/log4cats/contextlog/HttpStructuredContext.scala +++ b/core/src/main/scala/io/chrisdavenport/http4s/log4cats/contextlog/HttpStructuredContext.scala @@ -151,6 +151,9 @@ object HttpStructuredContext { "X-Real-Ip", "X-Scheme", + "X-Request-Start", + "X-Runtime", + "B3", "X-B3-Sampled", "X-B3-SpanId",