public class TracingRestTemplateInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
| Constructor and Description |
|---|
TracingRestTemplateInterceptor() |
TracingRestTemplateInterceptor(io.opentracing.Tracer tracer) |
TracingRestTemplateInterceptor(io.opentracing.Tracer tracer,
List<RestTemplateSpanDecorator> spanDecorators) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest httpRequest,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution) |
public TracingRestTemplateInterceptor()
public TracingRestTemplateInterceptor(io.opentracing.Tracer tracer)
tracer - tracerpublic TracingRestTemplateInterceptor(io.opentracing.Tracer tracer,
List<RestTemplateSpanDecorator> spanDecorators)
tracer - tracerspanDecorators - list of decoratorspublic org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest httpRequest,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution)
throws IOException
intercept in interface org.springframework.http.client.ClientHttpRequestInterceptorIOExceptionCopyright © 2016–2020. All rights reserved.