public static class RestTemplateSpanDecorator.StandardTags extends Object implements RestTemplateSpanDecorator
RestTemplateSpanDecorator.StandardTags| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_NAME |
| Constructor and Description |
|---|
StandardTags() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
errorLogs(Throwable ex) |
void |
onError(org.springframework.http.HttpRequest httpRequest,
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 httpRequest,
org.springframework.http.client.ClientHttpResponse response,
io.opentracing.Span span)
Decorate span after request is done, e.g.
|
public static final String COMPONENT_NAME
public void onRequest(org.springframework.http.HttpRequest request,
io.opentracing.Span span)
RestTemplateSpanDecoratorClientHttpRequestInterceptor.intercept(HttpRequest, byte[], ClientHttpRequestExecution)
is called.onRequest in interface RestTemplateSpanDecoratorrequest - requestspan - client spanpublic void onResponse(org.springframework.http.HttpRequest httpRequest,
org.springframework.http.client.ClientHttpResponse response,
io.opentracing.Span span)
RestTemplateSpanDecoratorClientHttpRequestInterceptor.intercept(HttpRequest, byte[], ClientHttpRequestExecution)
is calledonResponse in interface RestTemplateSpanDecoratorhttpRequest - requestresponse - responsespan - spanpublic void onError(org.springframework.http.HttpRequest httpRequest,
Throwable ex,
io.opentracing.Span span)
RestTemplateSpanDecoratorClientHttpRequestInterceptor.intercept(HttpRequest, byte[], ClientHttpRequestExecution)
is processing.onError in interface RestTemplateSpanDecoratorhttpRequest - requestex - exceptionspan - spanCopyright © 2016–2020. All rights reserved.