The Spring Cloud doc says:
If Hystrix is on the classpath, by default Feign will wrap all methods with a circuit breaker.
- That's good but how do I configure the Hystrix options to ignore certain exceptions? I've an
ErrorDecoder
implementation that maps HTTP status code to exceptions. If I put@HystrixCommand
on the method, does Feign honor that? - Our requirement is to log various details about every HTTP call made out to dependencies. Currently I've a decorated
RestTemplate
that does this. From what I see in the code and based on Dave Syer's answer here, Feign does't use aRestTemplate
. So how do I meet the logging requirement? The interfacefeign.Client
looks promising, although I'm not entirely sure if that's the one to use.