Class RestTemplateExchangeTags
java.lang.Object
org.springframework.boot.actuate.metrics.web.client.RestTemplateExchangeTags
@Deprecated(since="3.0.0",
forRemoval=true)
public final class RestTemplateExchangeTags
extends Object
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 RestTemplate
.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.micrometer.core.instrument.Tag
clientName
(org.springframework.http.HttpRequest request) Deprecated, for removal: This API element is subject to removal in a future version.static io.micrometer.core.instrument.Tag
method
(org.springframework.http.HttpRequest 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.http.client.ClientHttpResponse 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.http.client.ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Creates astatus
Tag
derived from thestatus
of the givenresponse
.static io.micrometer.core.instrument.Tag
Deprecated, for removal: This API element is subject to removal in a future version.Creates auri
Tag
from the givenuriTemplate
.static io.micrometer.core.instrument.Tag
uri
(org.springframework.http.HttpRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Creates auri
Tag
for the URI of the givenrequest
.
-
Method Details
-
method
public static io.micrometer.core.instrument.Tag method(org.springframework.http.HttpRequest 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.http.HttpRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Creates auri
Tag
for the URI of the givenrequest
.- Parameters:
request
- the request- Returns:
- the uri tag
-
uri
Deprecated, for removal: This API element is subject to removal in a future version.Creates auri
Tag
from the givenuriTemplate
.- Parameters:
uriTemplate
- the template- Returns:
- the uri tag
-
status
public static io.micrometer.core.instrument.Tag status(org.springframework.http.client.ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Creates astatus
Tag
derived from thestatus
of the givenresponse
.- Parameters:
response
- the response- Returns:
- the status tag
-
clientName
public static io.micrometer.core.instrument.Tag clientName(org.springframework.http.HttpRequest 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.http.client.ClientHttpResponse 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