Class ErrorSpanDecorator
java.lang.Object
org.zalando.riptide.opentracing.span.ErrorSpanDecorator
- All Implemented Interfaces:
SpanDecorator
Sets the
error span tag as well as the error.kind and error.object span logs.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonError(io.opentracing.Span span, RequestArguments arguments, Throwable error) voidonResponse(io.opentracing.Span span, RequestArguments arguments, org.springframework.http.client.ClientHttpResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zalando.riptide.opentracing.span.SpanDecorator
onRequest
-
Constructor Details
-
ErrorSpanDecorator
public ErrorSpanDecorator()
-
-
Method Details
-
onResponse
public void onResponse(io.opentracing.Span span, RequestArguments arguments, org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
onResponsein interfaceSpanDecorator- Throws:
IOException
-
onError
- Specified by:
onErrorin interfaceSpanDecorator
-