Package brave.spring.web
Class TracingAsyncClientHttpRequestInterceptor
- java.lang.Object
-
- brave.spring.web.TracingAsyncClientHttpRequestInterceptor
-
- All Implemented Interfaces:
org.springframework.http.client.AsyncClientHttpRequestInterceptor
public final class TracingAsyncClientHttpRequestInterceptor extends Object implements org.springframework.http.client.AsyncClientHttpRequestInterceptor
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.springframework.http.client.AsyncClientHttpRequestInterceptor
create(HttpTracing httpTracing)
static org.springframework.http.client.AsyncClientHttpRequestInterceptor
create(Tracing tracing)
org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse>
intercept(org.springframework.http.HttpRequest req, byte[] body, org.springframework.http.client.AsyncClientHttpRequestExecution execution)
-
-
-
Method Detail
-
create
public static org.springframework.http.client.AsyncClientHttpRequestInterceptor create(Tracing tracing)
-
create
public static org.springframework.http.client.AsyncClientHttpRequestInterceptor create(HttpTracing httpTracing)
-
intercept
public org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse> intercept(org.springframework.http.HttpRequest req, byte[] body, org.springframework.http.client.AsyncClientHttpRequestExecution execution) throws IOException
- Specified by:
intercept
in interfaceorg.springframework.http.client.AsyncClientHttpRequestInterceptor
- Throws:
IOException
-
-