spring-cloud-openfeign icon indicating copy to clipboard operation
spring-cloud-openfeign copied to clipboard

Client delegation stopped working

Open kubav182 opened this issue 3 months ago • 2 comments

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.

kubav182 avatar May 27 '24 13:05 kubav182