Class TracingClientHttpRequestInterceptor

java.lang.Object
brave.spring.web.TracingClientHttpRequestInterceptor
All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor

public final class TracingClientHttpRequestInterceptor
extends Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
  • Method Summary

    Modifier and Type Method Description
    static org.springframework.http.client.ClientHttpRequestInterceptor create​(HttpTracing httpTracing)  
    static org.springframework.http.client.ClientHttpRequestInterceptor create​(Tracing tracing)  
    org.springframework.http.client.ClientHttpResponse intercept​(org.springframework.http.HttpRequest req, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution)  

    Methods inherited from class java.lang.Object

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

    • create

      public static org.springframework.http.client.ClientHttpRequestInterceptor create​(Tracing tracing)
    • create

      public static org.springframework.http.client.ClientHttpRequestInterceptor create​(HttpTracing httpTracing)
    • intercept

      public org.springframework.http.client.ClientHttpResponse intercept​(org.springframework.http.HttpRequest req, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException
      Specified by:
      intercept in interface org.springframework.http.client.ClientHttpRequestInterceptor
      Throws:
      IOException