-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX-5017 Add authorization metrics (#5074)
Motivation: Fixing an open improvement issue. #5017 Modifications: - Modified the `AuthService.java` file to use `MoreMeters.newTimer`. - Updated the tests. I think some are still remaining to be fixed, so opening the PR as draft. - Any feedback is welcome as it's my first time! 😄 Result: - Closes #5017. (If this resolves the issue.) - Describe the consequences that a user will face after this PR is merged. <!-- Visit this URL to learn more about how to write a pull request description: https://armeria.dev/community/developer-guide#how-to-write-pull-request-description --> The metrics would look like: ``` # HELP armeria_server_auth_seconds # TYPE armeria_server_auth_seconds summary armeria_server_auth_seconds_count 1.0 armeria_server_auth_seconds_sum 0.018437417 # HELP armeria_server_auth_seconds_max # TYPE armeria_server_auth_seconds_max gauge armeria_server_auth_seconds_max 0.018437417 ``` --------- Co-authored-by: jrhee17 <guins_j@guins.org> Co-authored-by: songmw725 <songmw725@gmail.com>
- Loading branch information
1 parent
1be0dd1
commit eb9470c
Showing
5 changed files
with
118 additions
and
41 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