Class RestTemplateExchangeTags
java.lang.Object
org.springframework.boot.actuate.metrics.web.client.RestTemplateExchangeTags
Factory methods for creating
Tags
related to a request-response exchange
performed by a RestTemplate
.- Since:
- 2.0.0
- Author:
- Andy Wilkinson, Jon Schneider, Nishant Raut, Brian Clozel
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.micrometer.core.instrument.Tag
clientName
(HttpRequest request) static io.micrometer.core.instrument.Tag
method
(HttpRequest request) static io.micrometer.core.instrument.Tag
outcome
(ClientHttpResponse response) static io.micrometer.core.instrument.Tag
status
(ClientHttpResponse response) static io.micrometer.core.instrument.Tag
Creates auri
Tag
from the givenuriTemplate
.static io.micrometer.core.instrument.Tag
uri
(HttpRequest request) Creates auri
Tag
for the URI of the givenrequest
.
-
Method Details
-
method
- Parameters:
request
- the request- Returns:
- the method tag
-
uri
Creates auri
Tag
for the URI of the givenrequest
.- Parameters:
request
- the request- Returns:
- the uri tag
-
uri
Creates auri
Tag
from the givenuriTemplate
.- Parameters:
uriTemplate
- the template- Returns:
- the uri tag
-
status
- Parameters:
response
- the response- Returns:
- the status tag
-
clientName
- Parameters:
request
- the request- Returns:
- the clientName tag
-
outcome
- Parameters:
response
- the response- Returns:
- the outcome tag
- Since:
- 2.2.0
-