cortex icon indicating copy to clipboard operation
cortex copied to clipboard

feat: Added support for logging of HTTP Headers

Open zspeaks opened this issue 3 years ago • 2 comments
trafficstars

What this PR does: Adds support for the addition of the contents of HTTP headers to logs.
Which issue(s) this PR fixes: Fixes #4799

Checklist

  • [x] Tests updated
  • [x] Documentation added
  • [x] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

zspeaks avatar Jul 27 '22 17:07 zspeaks

@zspeaks can you also share an example how the actual log looks like?

alvinlin123 avatar Jul 27 '22 21:07 alvinlin123

Here's an example of what the logging looks like. Note: for the purposes of this example, I'm sending simulated requests with known headers and contents. In an actual running scenario, these additions to the logs would appear alongside the other information in the logs NOT on their own as they do here. With that said, here's examples for 1, 2 and 3 headers being included in the request. Screen Shot 2022-07-28 at 9 27 00 AM

zspeaks avatar Jul 28 '22 13:07 zspeaks

Nice!!

alanprot avatar Sep 01 '22 22:09 alanprot