Package brave.okhttp3
Class TracingInterceptor
java.lang.Object
brave.okhttp3.TracingInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
public final class TracingInterceptor extends 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, use
TracingCallFactory.-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and Type Method Description static okhttp3.Interceptorcreate(HttpTracing httpTracing)static okhttp3.Interceptorcreate(Tracing tracing)okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
Method Details
-
create
-
create
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-