You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The underlying stoplight gem support custom error handling via the .with_error_handler method.
It would be very useful for my use case to add an option to this Faraday middleware that allows for passing such a costum error handler, as it would be great to allow for particular error types to be exempt from tripping the circuit breaker (like regular 403 or 401 responses from downstream services, which aren't really out-of-the-ordinary conditions that should trip the breaker).
E.g., we have code elsewhere using stoplight that does something like this to exempt the NON_TRIPPING error classes from tripping the breaker:
This issue is a request to add an error_handler option with similar behavior to this middleware, where the default error handler would just be Stoplight::Default::ERROR_HANDLER
The text was updated successfully, but these errors were encountered:
The underlying stoplight gem support custom error handling via the
.with_error_handler
method.It would be very useful for my use case to add an option to this Faraday middleware that allows for passing such a costum error handler, as it would be great to allow for particular error types to be exempt from tripping the circuit breaker (like regular
403
or401
responses from downstream services, which aren't really out-of-the-ordinary conditions that should trip the breaker).E.g., we have code elsewhere using stoplight that does something like this to exempt the
NON_TRIPPING
error classes from tripping the breaker:This issue is a request to add an
error_handler
option with similar behavior to this middleware, where the default error handler would just beStoplight::Default::ERROR_HANDLER
The text was updated successfully, but these errors were encountered: