Package brave.okhttp3

Class 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.
    • 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 IOException
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        IOException