Class TracingInterceptor

java.lang.Object
io.opentelemetry.instrumentation.okhttp.v3_0.internal.TracingInterceptor
All Implemented Interfaces:
okhttp3.Interceptor

public final class TracingInterceptor extends Object implements okhttp3.Interceptor
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface okhttp3.Interceptor

    okhttp3.Interceptor.Chain
  • Constructor Summary

    Constructors
    Constructor
    Description
    TracingInterceptor(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<okhttp3.Request,okhttp3.Response> instrumenter, io.opentelemetry.context.propagation.ContextPropagators propagators)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
  • Constructor Details

    • TracingInterceptor

      public TracingInterceptor(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<okhttp3.Request,okhttp3.Response> instrumenter, io.opentelemetry.context.propagation.ContextPropagators propagators)
  • Method Details

    • intercept

      public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException
      Specified by:
      intercept in interface okhttp3.Interceptor
      Throws:
      IOException