-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture otel metrics for OAuth errors and add logging to stderr (#3437)
* Add new counters * Increment error counter for authorize * Log authorize errors to `stderr` * Minor formatting * Add metrics and error logging for token handler * New counter for idp response path * Capture metrics for remaining handlers * Removing logging from npm, let service do it * Log service error in oidc/saml response paths * Cleanup * Simplify metric name * Use renamed metric and set protocol attribute * Sync lock file * Tweak error message * Add protocol and login_type tags to authorize and response metrics * Log error for oAuth redirect error responses * Add protocol and login_type to error metrics inside token/userinfo handlers * Set attributes earlier in the flow if possible * Set protocol early in the flow * Revert lock file changes * Revert lock file changes * print err instead of just message * error -> err in catch blocks for consistency --------- Co-authored-by: Deepak Prabhakara <[email protected]>
- Loading branch information
1 parent
b7c37c1
commit 3f586ef
Showing
24 changed files
with
282 additions
and
178 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.