-
public interface TracedRequestListenerListener for automatically created Span around OkHttp Request.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonRequestIntercepted(Request request, Span span, Response response, Throwable throwable)Notifies that a span was automatically created around an OkHttp Request. -
-
Method Detail
-
onRequestIntercepted
abstract Unit onRequestIntercepted(Request request, Span span, Response response, Throwable throwable)
Notifies that a span was automatically created around an OkHttp Request. You can update the given Span (e.g.: add custom tags / baggage items) before it is persisted. Won't be called if Request wasn't sampled.
- Parameters:
request- the intercepted Requestspan- the Span created around the intercepted Requestresponse- the Request response in case of anythrowable- in case an error occurred during the Request
-
-
-
-