Package brave.okhttp3

Class TracingCallFactory

  • All Implemented Interfaces:
    okhttp3.Call.Factory

    public final class TracingCallFactory
    extends Object
    implements okhttp3.Call.Factory
    This internally adds an interceptor which ensures whatever current span exists is available via Tracer.currentSpanCustomizer() and Tracer.currentSpan()
    • Method Detail

      • create

        public static okhttp3.Call.Factory create​(brave.Tracing tracing,
                                                  okhttp3.OkHttpClient ok)
      • create

        public static okhttp3.Call.Factory create​(HttpTracing httpTracing,
                                                  okhttp3.OkHttpClient ok)
      • newCall

        public okhttp3.Call newCall​(okhttp3.Request request)
        Specified by:
        newCall in interface okhttp3.Call.Factory