Class DefaultRestTemplateExchangeTagsProvider

java.lang.Object
org.springframework.boot.actuate.metrics.web.client.DefaultRestTemplateExchangeTagsProvider
All Implemented Interfaces:
RestTemplateExchangeTagsProvider

@Deprecated(since="3.0.0", forRemoval=true) public class DefaultRestTemplateExchangeTagsProvider extends Object implements RestTemplateExchangeTagsProvider
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.0.0 for removal in 3.2.0 in favor of DefaultClientRequestObservationConvention
Default implementation of RestTemplateExchangeTagsProvider.
Since:
2.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    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)
    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 given request and response exchange.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultRestTemplateExchangeTagsProvider

      public DefaultRestTemplateExchangeTagsProvider()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getTags

      public 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.
      Description copied from interface: RestTemplateExchangeTagsProvider
      Provides the tags to be associated with metrics that are recorded for the given request and response exchange.
      Specified by:
      getTags in interface RestTemplateExchangeTagsProvider
      Parameters:
      urlTemplate - the source URl template, if available
      request - the request
      response - the response (may be null if the exchange failed)
      Returns:
      the tags