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
Describe the bug
spring-cloud-square-okhttp version 0.4.1
Auto-configuration of the org.springframework.cloud.square.okhttp.tracing.TracingOkHttpInterceptor only works if the client builder bean has been annotated with @LoadBalanced: OkHttpBuilderBeanPostProcessor.java#L42
Tracing and load balancing should work independently of each other.
Sample
@Configuration
classSampleContext {
@Bean
@LoadBalanced // Drop the annotation and tracing headers will no longer be added to the requestfunokHttpClientBuilder() : OkHttpClient.Builder=OkHttpClient.Builder()
@Bean
funokHttpClient(builder:OkHttpClient.Builder): OkHttpClient= builder.build()
}
The text was updated successfully, but these errors were encountered:
Describe the bug
spring-cloud-square-okhttp version 0.4.1
Auto-configuration of the
org.springframework.cloud.square.okhttp.tracing.TracingOkHttpInterceptor
only works if the client builder bean has been annotated with@LoadBalanced
: OkHttpBuilderBeanPostProcessor.java#L42Tracing and load balancing should work independently of each other.
Sample
The text was updated successfully, but these errors were encountered: