-
Notifications
You must be signed in to change notification settings - Fork 720
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
api: logging the HTTP request details #6718
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ryan Leung <rleungx@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6718 +/- ##
==========================================
- Coverage 74.46% 74.41% -0.06%
==========================================
Files 416 421 +5
Lines 43596 44245 +649
==========================================
+ Hits 32465 32923 +458
- Misses 8228 8416 +188
- Partials 2903 2906 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@AmoebaProtozoa Is there possible that the log will print too much when operating the keyspace? |
It's probably fine, the most frequent keyspace operation is probably get, which is called everytime a new tidb connect to the cluster, other operations are relatively infrequent. |
Then, I prefer to enable the logging to help us record more info on the incoming request. |
are there some problems with data security if you print all the body? |
good point |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it duplicated with audit log
? maybe directly change audit log format.
Signed-off-by: Ryan Leung <rleungx@gmail.com>
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What problem does this PR solve?
Issue Number: Ref #5895
What is changed and how does it work?
Support logging keyspace(group) related HTTP request details.
Check List
Tests
failed case:
succeed case:
Release note