Class DefaultRestTemplateExchangeTagsProvider
- java.lang.Object
- org.springframework.boot.actuate.metrics.web.client.DefaultRestTemplateExchangeTagsProvider
- All Implemented Interfaces:
RestTemplateExchangeTagsProvider
public class DefaultRestTemplateExchangeTagsProvider extends Object implements RestTemplateExchangeTagsProvider
Default implementation ofRestTemplateExchangeTagsProvider
.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description DefaultRestTemplateExchangeTagsProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<io.micrometer.core.instrument.Tag>
getTags(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.
Constructor Detail
DefaultRestTemplateExchangeTagsProvider
public DefaultRestTemplateExchangeTagsProvider()
Method Detail
getTags
public Iterable<io.micrometer.core.instrument.Tag> getTags(String urlTemplate, org.springframework.http.HttpRequest request, org.springframework.http.client.ClientHttpResponse response)
Description copied from interface:RestTemplateExchangeTagsProvider
Provides the tags to be associated with metrics that are recorded for the givenrequest
andresponse
exchange.- Specified by:
getTags
in interfaceRestTemplateExchangeTagsProvider
- Parameters:
urlTemplate
- the source URl template, if availablerequest
- the requestresponse
- the response (may benull
if the exchange failed)- Returns:
- the tags