-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstream changes for PR #3361 - Added request logging for gRPC and HT…
…TP in the server side (#3862) * Added request logging for grpc Signed-off-by: Yash Sharma <[email protected]> Added request logging for grpc Signed-off-by: Yash Sharma <[email protected]> changed the logging option to log start and finish of a call Signed-off-by: Yash Sharma <[email protected]> added flags for enabling/disabling request logging for grpc Signed-off-by: Yash Sharma <[email protected]> nitpicks due to make docs Signed-off-by: Yash Sharma <[email protected]> added a changelog Signed-off-by: Yash Sharma <[email protected]> nitpicks Signed-off-by: Yash Sharma <[email protected]> configure option for logging Signed-off-by: Yash Sharma <[email protected]> changelog nitpick Signed-off-by: Yash Sharma <[email protected]> added changelog Signed-off-by: Yash Sharma <[email protected]> more nitpicks Signed-off-by: Yash Sharma <[email protected]> renamed requestLoggingDecision to reqLogDecision and some nitcpicks Signed-off-by: Yash Sharma <[email protected]> Added the check of reusing the request-id if present Signed-off-by: Yash Sharma <[email protected]> make docs nitpick Signed-off-by: Yash Sharma <[email protected]> Added the default level of debug and error codes for logging Signed-off-by: Yash Sharma <[email protected]> Add the levels for logging Signed-off-by: Yash Sharma <[email protected]> Added a YAML flag for request logging config Signed-off-by: Yash Sharma <[email protected]> Changed the setup signature to accept a reqlog param to be shared among all the components of Thanos. Changed the signature of decision for logging, and pushed the new yaml config among all the middleware Signed-off-by: Yash Sharma <[email protected]> Updated the grpc middleware package to include the latest signature of the decider Signed-off-by: Yash Sharma <[email protected]> Added new config files for YAML parsing Signed-off-by: Yash Sharma <[email protected]> changelog nitpick Signed-off-by: Yash Sharma <[email protected]> linting nitpicks Signed-off-by: Yash Sharma <[email protected]> Added deprecation warning and added a function to reroute logging through one of the flags Signed-off-by: Yash Sharma <[email protected]> docs nitpicks Signed-off-by: Yash Sharma <[email protected]> bug fix for reverse logging condition Signed-off-by: Yash Sharma <[email protected]> fixed some bugs for evaluating the options and added a warning for deprecating flag of log.request.decision Signed-off-by: Yash Sharma <[email protected]> removed gophercloud from go.mod Signed-off-by: Yash Sharma <[email protected]> self addressed comments Signed-off-by: Yash Sharma <[email protected]> * Added a dummy variable which was used by the, to be deprecated flag of request logging * Added a warning that request logging is disabled for tools * Removed a flag which is to be deprecated in the next release Signed-off-by: Yash Sharma <[email protected]> * Added a fail-first approach if the request logging is incorrectly enabled. Signed-off-by: Yash Sharma <[email protected]> Renaming of functions Signed-off-by: Yash Sharma <[email protected]> Removed indentation and simplified else conditions Signed-off-by: Yash Sharma <[email protected]> break down the yaml struct for grpc and http into its individual configs Signed-off-by: Yash Sharma <[email protected]> make docs nits Signed-off-by: Yash Sharma <[email protected]> modify changelog Signed-off-by: Yash Sharma <[email protected]> modified the signature of setup function to the original one Signed-off-by: Yash Sharma <[email protected]> removed the message for the flags Signed-off-by: Yash Sharma <[email protected]> make docs nits Signed-off-by: Yash Sharma <[email protected]> Added auto generation scripts for req logging Signed-off-by: Yash Sharma <[email protected]> removed request logging from compactor Signed-off-by: Yash Sharma <[email protected]> remove verbose warn messages Signed-off-by: Yash Sharma <[email protected]> changed pass by value to pass by reference Signed-off-by: Yash Sharma <[email protected]> removed occurence of os.Exit Signed-off-by: Yash Sharma <[email protected]> make docs nits Signed-off-by: Yash Sharma <[email protected]> revert compact.go to master Signed-off-by: Yash Sharma <[email protected]> rename ReqlogConfig to RequestConfig Signed-off-by: Yash Sharma <[email protected]> Added a validation check so that all the configs are checked before a component starts Signed-off-by: Yash Sharma <[email protected]> nits Signed-off-by: Yash Sharma <[email protected]> Modify the message for request.logging flag for having a default value as null Signed-off-by: Yash Sharma <[email protected]> remove a line from the flags Signed-off-by: Yash Sharma <[email protected]> remove a deceptive comment Signed-off-by: Yash Sharma <[email protected]> changed the var name to small caps Signed-off-by: Yash Sharma <[email protected]> change errors.Errorf to Wrapf for providing context to error message Signed-off-by: Yash Sharma <[email protected]> move changelog entry to unreleased tag Signed-off-by: Yash Sharma <[email protected]> changed request.logging to `request.logging` in the flags Signed-off-by: Yash Sharma <[email protected]> * added changelog entry Signed-off-by: Yash Sharma <[email protected]> * changed changelog Signed-off-by: Yash Sharma <[email protected]> * renamed decidehttpflag and decidegrpcflag Signed-off-by: Yash Sharma <[email protected]> * addressed reviewers comments Signed-off-by: Yash Sharma <[email protected]>
- Loading branch information
1 parent
569a4d7
commit befb025
Showing
28 changed files
with
733 additions
and
72 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.