Area(ContainerRegistry::Client) Create a logging middleware feature to catch ClientErrors
What does this MR do and why?
-
Fixes #353223
-
Creates a new development feature named
:log_client_error_middleware
as suggested by @10io -
Logs all requests, whose response status codes are between 400-499, also known as ClientErrors
-
It is a Faraday Middleware that is registered in
config/initilizers/faraday.rb
Screenshots or screen recordings
How to set up and validate locally
- Enable the feature
:log_client_error_middleware
- Misconfigure your container registry
- Visit container registry page
- Check
exceptions_json
logs
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Hemanth Krishna