Class DefaultRestTemplateExchangeTagsProvider

    • Method Summary

      All Methods Instance Methods Concrete 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 given request and response exchange.
      • Methods inherited from class java.lang.Object

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

      • DefaultRestTemplateExchangeTagsProvider

        public DefaultRestTemplateExchangeTagsProvider()
    • Method Detail

      • getTags

        public 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)
        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