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
@Deprecated(since="3.0.0",
forRemoval=true)
public interface RestTemplateExchangeTagsProvider
Deprecated, for removal: This API element is subject to removal in a future version.
Provides
Tags for an exchange performed by a RestTemplate.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionIterable<io.micrometer.core.instrument.Tag>getTags(String urlTemplate, org.springframework.http.HttpRequest request, org.springframework.http.client.ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Provides the tags to be associated with metrics that are recorded for the givenrequestandresponseexchange.
-
Method Details
-
getTags
Iterable<io.micrometer.core.instrument.Tag> getTags(String urlTemplate, org.springframework.http.HttpRequest request, org.springframework.http.client.ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Provides the tags to be associated with metrics that are recorded for the givenrequestandresponseexchange.- Parameters:
urlTemplate- the source URl template, if availablerequest- the requestresponse- the response (may benullif the exchange failed)- Returns:
- the tags
-
ClientRequestObservationConvention