public interface ApacheClientSpanDecorator
| Modifier and Type | Interface and Description |
|---|---|
static class |
ApacheClientSpanDecorator.StandardTags
Decorator which adds standard set of tags and logs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext httpContext,
Exception ex,
io.opentracing.Span span)
Decorate span span on error e.g.
|
void |
onRequest(org.apache.http.client.methods.HttpRequestWrapper request,
org.apache.http.protocol.HttpContext httpContext,
io.opentracing.Span span)
Decorate span before request is fired.
|
void |
onResponse(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext httpContext,
io.opentracing.Span span)
Decorate span after response is received.
|
void onRequest(org.apache.http.client.methods.HttpRequestWrapper request,
org.apache.http.protocol.HttpContext httpContext,
io.opentracing.Span span)
request - requesthttpContext - contextspan - span to decoratevoid onResponse(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext httpContext,
io.opentracing.Span span)
response - responsehttpContext - contextspan - span to decoratevoid onError(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext httpContext,
Exception ex,
io.opentracing.Span span)
UnknownHostException/request - requesthttpContext - contextex - exceptionspan - span to decorateCopyright © 2020. All rights reserved.