forked from line/armeria
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: A user sometimes needs to sanitize a `RequestLog` depending on additional information available in `RequestContext`, e.g. current request path. Modifications: - Use `BiFunction<RequestContext,...>` instead of `Function` for sanitization. - `RegexBasedSanitizer` is now a `BiFunction`. - Deprecate the methods that require `Function`s in: - `Logging{Client,RpcClient,Service}Builder` - `RequestOnlyLog.toRequestOnlyString()` - `RequestLog.toResponseOnlyString()` Result: - A user can implement a sanitizer that behaves differently dependin on the current context. - The methods that require `Function`s in the following methods have been deprecated: - `Logging{Client,RpcClient,Service}Builder` - `RequestOnlyLog.toRequestOnlyString()` - `RequestLog.toResponseOnlyString()`
- Loading branch information
Showing
16 changed files
with
738 additions
and
211 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
Oops, something went wrong.