Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Logging of HTTP Headers #34

Open
therealdwright opened this issue Sep 11, 2023 · 0 comments · May be fixed by #35
Open

Support Logging of HTTP Headers #34

therealdwright opened this issue Sep 11, 2023 · 0 comments · May be fixed by #35

Comments

@therealdwright
Copy link

As part of enhancing the debugging capabilities for header-based canary demos, we'd like to introduce the ability to log HTTP headers in our server logs.

Background:
When conducting header-based canary demos, validating that the correct headers are being sent and received is crucial. This will enable better troubleshooting and confirmation that the logic based on these headers is functioning as expected.

Proposed Solution:

Introduce an environment variable DISPLAY_HEADERS to toggle header logging.

If DISPLAY_HEADERS is enabled, append the incoming request headers to the current log line for each request. Ensure headers are formatted clearly for easy parsing in the logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant