public static class ApacheClientSpanDecorator.StandardTags extends Object implements ApacheClientSpanDecorator
ApacheClientSpanDecorator.StandardTags| Constructor and Description |
|---|
StandardTags() |
| 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.
|
public void onRequest(org.apache.http.client.methods.HttpRequestWrapper request,
org.apache.http.protocol.HttpContext httpContext,
io.opentracing.Span span)
ApacheClientSpanDecoratoronRequest in interface ApacheClientSpanDecoratorrequest - requesthttpContext - contextspan - span to decoratepublic void onResponse(org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext httpContext,
io.opentracing.Span span)
ApacheClientSpanDecoratoronResponse in interface ApacheClientSpanDecoratorresponse - responsehttpContext - contextspan - span to decoratepublic void onError(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext httpContext,
Exception ex,
io.opentracing.Span span)
ApacheClientSpanDecoratorUnknownHostException/onError in interface ApacheClientSpanDecoratorrequest - requesthttpContext - contextex - exceptionspan - span to decorateCopyright © 2020. All rights reserved.