public interface RestTemplateSpanDecorator
Do not finish span or throw any exceptions!
| Modifier and Type | Interface and Description |
|---|---|
static class |
RestTemplateSpanDecorator.StandardTags
This decorator adds set of standard tags to the span.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(org.springframework.http.HttpRequest request,
Throwable ex,
io.opentracing.Span span)
Decorate span when exception is thrown during request processing, e.g.
|
void |
onRequest(org.springframework.http.HttpRequest request,
io.opentracing.Span span)
Decorate span before before request is executed, e.g.
|
void |
onResponse(org.springframework.http.HttpRequest request,
org.springframework.http.client.ClientHttpResponse response,
io.opentracing.Span span)
Decorate span after request is done, e.g.
|
void onRequest(org.springframework.http.HttpRequest request,
io.opentracing.Span span)
ClientHttpRequestInterceptor.intercept(HttpRequest, byte[], ClientHttpRequestExecution)
is called.request - requestspan - client spanvoid onResponse(org.springframework.http.HttpRequest request,
org.springframework.http.client.ClientHttpResponse response,
io.opentracing.Span span)
ClientHttpRequestInterceptor.intercept(HttpRequest, byte[], ClientHttpRequestExecution)
is calledrequest - requestresponse - responsespan - spanvoid onError(org.springframework.http.HttpRequest request,
Throwable ex,
io.opentracing.Span span)
ClientHttpRequestInterceptor.intercept(HttpRequest, byte[], ClientHttpRequestExecution)
is processing.request - requestex - exceptionspan - spanCopyright © 2016–2020. All rights reserved.