-
Notifications
You must be signed in to change notification settings - Fork 901
feat: log long-lived connections acceptance #17219
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
Merged
ibetitsmike
merged 40 commits into
main
from
mike/16904-request-logging-on-long-lived-connection-opening
Apr 8, 2025
+351
−24
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
0e397ed
initial implementation of RequestLoggerContext and example usage in P…
ibetitsmike c384706
fix empty RequestLoggerContext
ibetitsmike 686f4db
referenced httplog while creating RequestLoggerContext
ibetitsmike 7edb8c3
refactored fields extension on the logger
ibetitsmike 5feb4e4
fixed log formatting
ibetitsmike 7500ef5
typo comment fix
ibetitsmike 66e2c3e
added logging to long lived connection opening functions
ibetitsmike 4e5f36e
added logging to other places
ibetitsmike b7822b3
updated comments
ibetitsmike a772430
renamed context fetcher
ibetitsmike 2a1dbe3
refactored logging in the logger middleware and added tests for logger
ibetitsmike 5a0fa05
removed unecessary helpers
ibetitsmike 30bb53d
added test for an http request
ibetitsmike 89e987e
linting fixes
ibetitsmike 1649116
added handling of internal test circumventing RequestLoggerContext in…
ibetitsmike 7ea2dd6
reverted the original behavior of logging WARN on Status Code >=500
ibetitsmike 338fd20
refactored logger to remove extending it with fields permanently
ibetitsmike 2708286
Removed nil checks when fetching RequestLogger
ibetitsmike ca3c4d3
refactored tests to use a fakesink to verify the written messages
ibetitsmike dfa2f4f
added WebSocket test to verify early logging
ibetitsmike 845ff0f
fix lint for response body leak
ibetitsmike 1f7acfb
reverted bodyclose lint fix
ibetitsmike 58aa736
fix for race condition in the test
ibetitsmike 2c63b32
linter fixes
ibetitsmike d268a3c
actually added logging early to test early logging
ibetitsmike 8f550c5
added a WaitGroup in logger internal tests to remove the race condition
ibetitsmike 81e1527
refactor after code review
ibetitsmike b9e2b61
added checking the logger fields in the test
ibetitsmike deb1a41
refactored mock request logger to fit current codebase
ibetitsmike 09e46d0
added mocked files to Makefile
ibetitsmike 9b16cf9
format fix
ibetitsmike 2e331a3
fixed path in Makefile
ibetitsmike 7e9f083
fixed Makefile path
ibetitsmike b82776f
fixed nested path in Makefile
ibetitsmike 3d44727
Merge branch 'main' into mike/16904-request-logging-on-long-lived-con…
ibetitsmike cb118a9
added additional checks
ibetitsmike 754cee6
refactored the WebSocket test to actually read and close the connection
ibetitsmike d28f2bd
Merge branch 'main' into mike/16904-request-logging-on-long-lived-con…
ibetitsmike 57a49d5
Merge branch 'main' into mike/16904-request-logging-on-long-lived-con…
ibetitsmike cb130de
Merge branch 'main' into mike/16904-request-logging-on-long-lived-con…
ibetitsmike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
refactor after code review
- Loading branch information
commit 81e15279c80e9e3e81bc22ebcc011500bc8aee07
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.