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

    Nested classes/interfaces inherited from interface okhttp3.Interceptor

    okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion
  • Field Summary

    Fields inherited from interface okhttp3.Interceptor

    Companion
  • Method Summary

    Modifier and Type Method Description
    static okhttp3.Interceptor create​(HttpTracing httpTracing)  
    static okhttp3.Interceptor create​(Tracing tracing)  
    okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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