Package io.micrometer.spring.web.client
Interface RestTemplateExchangeTagsProvider
-
- All Known Implementing Classes:
DefaultRestTemplateExchangeTagsProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RestTemplateExchangeTagsProvider
ProvidesTags
for an exchange performed by aRestTemplate
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Iterable<io.micrometer.core.instrument.Tag>
getTags(java.lang.String urlTemplate, org.springframework.http.HttpRequest request, org.springframework.http.client.ClientHttpResponse response)
Provides the tags to be associated with metrics that are recorded for the givenrequest
andresponse
exchange.
-
-
-
Method Detail
-
getTags
java.lang.Iterable<io.micrometer.core.instrument.Tag> getTags(@Nullable java.lang.String urlTemplate, org.springframework.http.HttpRequest request, @Nullable org.springframework.http.client.ClientHttpResponse response)
Provides the tags to be associated with metrics that are recorded for the givenrequest
andresponse
exchange.- Parameters:
urlTemplate
- the source URl template, if availablerequest
- the requestresponse
- the response (may benull
if the exchange failed)- Returns:
- the tags
-
-