public interface WebClientSpanDecorator
Do not finish span (otherwise some tags/logs might be missing)!
| Modifier and Type | Interface and Description |
|---|---|
static class |
WebClientSpanDecorator.StandardTags
This decorator adds set of standard tags to the span.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onCancel(org.springframework.web.reactive.function.client.ClientRequest clientRequest,
io.opentracing.Span span)
Decorate span when the subscription is cancelled.
|
void |
onError(org.springframework.web.reactive.function.client.ClientRequest clientRequest,
Throwable throwable,
io.opentracing.Span span)
Decorate span when exception is thrown during clientRequest processing, e.g.
|
void |
onRequest(org.springframework.web.reactive.function.client.ClientRequest clientRequest,
io.opentracing.Span span)
Decorate span before before request is executed, e.g.
|
void |
onResponse(org.springframework.web.reactive.function.client.ClientRequest clientRequest,
org.springframework.web.reactive.function.client.ClientResponse clientResponse,
io.opentracing.Span span)
Decorate span after the clientRequest is done, e.g.
|
void onRequest(org.springframework.web.reactive.function.client.ClientRequest clientRequest,
io.opentracing.Span span)
.onSubscribe() is called.clientRequest - requestspan - client spanvoid onResponse(org.springframework.web.reactive.function.client.ClientRequest clientRequest,
org.springframework.web.reactive.function.client.ClientResponse clientResponse,
io.opentracing.Span span)
.onNext() is called.clientRequest - clientRequestclientResponse - clientResponsespan - spanvoid onError(org.springframework.web.reactive.function.client.ClientRequest clientRequest,
Throwable throwable,
io.opentracing.Span span)
.onError() is called.clientRequest - clientRequestthrowable - exceptionspan - spanvoid onCancel(org.springframework.web.reactive.function.client.ClientRequest clientRequest,
io.opentracing.Span span)
clientRequest - clientRequestspan - spanCopyright © 2016–2020. All rights reserved.