Class OkHttp3MetricsInterceptor

java.lang.Object
com.netflix.spinnaker.okhttp.OkHttp3MetricsInterceptor
All Implemented Interfaces:
okhttp3.Interceptor

public class OkHttp3MetricsInterceptor extends Object implements okhttp3.Interceptor
  • Constructor Details

    • OkHttp3MetricsInterceptor

      public OkHttp3MetricsInterceptor(javax.inject.Provider<com.netflix.spectator.api.Registry> registry, OkHttpMetricsInterceptorProperties okHttpMetricsInterceptorProperties)
  • Method Details

    • intercept

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

      protected final Object doIntercept(Object chainObject) throws IOException
      Throws:
      IOException