Class WebClientExchangeTags
java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.client.WebClientExchangeTags
Deprecated, for removal: This API element is subject to removal in a future version.
Factory methods for creating
Tags
related to a request-response exchange
performed by a WebClient
.- Since:
- 2.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.micrometer.core.instrument.Tag
clientName
(org.springframework.web.reactive.function.client.ClientRequest request) Deprecated, for removal: This API element is subject to removal in a future version.static io.micrometer.core.instrument.Tag
method
(org.springframework.web.reactive.function.client.ClientRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Creates amethod
Tag
for themethod
of the givenrequest
.static io.micrometer.core.instrument.Tag
outcome
(org.springframework.web.reactive.function.client.ClientResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Creates anoutcome
Tag
derived from thestatus
of the givenresponse
.static io.micrometer.core.instrument.Tag
status
(org.springframework.web.reactive.function.client.ClientResponse response, Throwable throwable) Deprecated, for removal: This API element is subject to removal in a future version.Creates astatus
Tag
derived from theClientResponse.statusCode()
of the givenresponse
if available, the thrown exception otherwise, or considers the request as Cancelled as a last resort.static io.micrometer.core.instrument.Tag
uri
(org.springframework.web.reactive.function.client.ClientRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Creates auri
Tag
for the URI path of the givenrequest
.
-
Method Details
-
method
public static io.micrometer.core.instrument.Tag method(org.springframework.web.reactive.function.client.ClientRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Creates amethod
Tag
for themethod
of the givenrequest
.- Parameters:
request
- the request- Returns:
- the method tag
-
uri
public static io.micrometer.core.instrument.Tag uri(org.springframework.web.reactive.function.client.ClientRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Creates auri
Tag
for the URI path of the givenrequest
.- Parameters:
request
- the request- Returns:
- the uri tag
-
status
public static io.micrometer.core.instrument.Tag status(org.springframework.web.reactive.function.client.ClientResponse response, Throwable throwable) Deprecated, for removal: This API element is subject to removal in a future version.Creates astatus
Tag
derived from theClientResponse.statusCode()
of the givenresponse
if available, the thrown exception otherwise, or considers the request as Cancelled as a last resort.- Parameters:
response
- the responsethrowable
- the exception- Returns:
- the status tag
- Since:
- 2.3.0
-
clientName
public static io.micrometer.core.instrument.Tag clientName(org.springframework.web.reactive.function.client.ClientRequest request) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
request
- the request- Returns:
- the client.name tag
-
outcome
public static io.micrometer.core.instrument.Tag outcome(org.springframework.web.reactive.function.client.ClientResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Creates anoutcome
Tag
derived from thestatus
of the givenresponse
.- Parameters:
response
- the response- Returns:
- the outcome tag
- Since:
- 2.2.0
-
DefaultClientRequestObservationConvention