spring-cloud-openfeign
spring-cloud-openfeign copied to clipboard
Client delegation stopped working
In previous cloud versions 2021.x I could make Client delegation like
@Bean
Client myClient(Client client) {
// return my client delegating default client
}
Now in version 2023.0.1 I'm getting error Client bean is in creation, so there is circular dependency.
I used it as interceptor around request/response. I understand there is RequestInterceptor and ResponseInterceptor. But RequestInterceptor just decorates RestTemplate and ResponseInterceptor does not contain for example request duration.
Is it bug or is there any other easy way how to get info about request/response + duration? I want to log this info to metric system.