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
Provides Tags for an exchange performed by a RestTemplate.
Since:
2.0.0
Author:
Jon Schneider, Andy Wilkinson
  • Method Summary

    Modifier and Type
    Method
    Description
    Iterable<io.micrometer.core.instrument.Tag>
    getTags(String urlTemplate, HttpRequest request, ClientHttpResponse response)
    Provides the tags to be associated with metrics that are recorded for the given request and response exchange.
  • Method Details

    • getTags

      Iterable<io.micrometer.core.instrument.Tag> getTags(String urlTemplate, HttpRequest request, ClientHttpResponse response)
      Provides the tags to be associated with metrics that are recorded for the given request and response exchange.
      Parameters:
      urlTemplate - the source URl template, if available
      request - the request
      response - the response (may be null if the exchange failed)
      Returns:
      the tags