- java.lang.Object
-
- brave.okhttp3.TracingInterceptor
-
- All Implemented Interfaces:
okhttp3.Interceptor
public final class TracingInterceptor extends java.lang.Object implements okhttp3.Interceptor
This is a network-level interceptor, which creates a new span for each attempt. Note that this does not work well for high traffic servers, as the span context can be lost when under backlog. In cases like that, useTracingCallFactory
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static okhttp3.Interceptor
create(HttpTracing httpTracing)
static okhttp3.Interceptor
create(Tracing tracing)
okhttp3.Response
intercept(okhttp3.Interceptor.Chain chain)
-
-
-
Method Detail
-
create
public static okhttp3.Interceptor create(Tracing tracing)
-
create
public static okhttp3.Interceptor create(HttpTracing httpTracing)
-
intercept
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws java.io.IOException
- Specified by:
intercept
in interfaceokhttp3.Interceptor
- Throws:
java.io.IOException
-
-