@FunctionalInterface public interface RestTemplateExchangeTagsProvider
Tags
for an exchange performed by a RestTemplate
.Modifier and Type | Method and Description |
---|---|
Iterable<io.micrometer.core.instrument.Tag> |
getTags(String urlTemplate,
HttpRequest request,
ClientHttpResponse response)
Provides the tags to be associated with metrics that are recorded for the given
request and response exchange. |
Iterable<io.micrometer.core.instrument.Tag> getTags(String urlTemplate, HttpRequest request, ClientHttpResponse response)
request
and response
exchange.urlTemplate
- the source URl template, if availablerequest
- the requestresponse
- the response (may be null
if the exchange failed)