public class TracingOkHttpInterceptor extends Object implements okhttp3.Interceptor
Interceptor that provides tracing support. This
implementation is taken from OpenZipkin Brave.
The Brave-specific interfaces have been replaced with Spring Cloud Sleuth interfaces.
This standardizes a way to instrument http clients, particularly in a way that
encourages use of portable customizations via HttpRequestParser and
HttpResponseParser.| Constructor and Description |
|---|
TracingOkHttpInterceptor(org.springframework.cloud.sleuth.CurrentTraceContext currentTraceContext,
org.springframework.cloud.sleuth.http.HttpClientHandler httpClientHandler) |
public TracingOkHttpInterceptor(org.springframework.cloud.sleuth.CurrentTraceContext currentTraceContext,
org.springframework.cloud.sleuth.http.HttpClientHandler httpClientHandler)
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionCopyright © 2021 Pivotal Software, Inc.. All rights reserved.