Class RestTemplateExchangeTags

java.lang.Object
org.springframework.boot.actuate.metrics.web.client.RestTemplateExchangeTags

@Deprecated(since="3.0.0", forRemoval=true) public final class RestTemplateExchangeTags extends Object
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
Factory methods for creating Tags related to a request-response exchange performed by a RestTemplate.
Since:
2.0.0
Author:
Andy Wilkinson, Jon Schneider, Nishant Raut, Brian Clozel
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.micrometer.core.instrument.Tag
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a client.name Tag derived from the host of the URI of the given request.
    static io.micrometer.core.instrument.Tag
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a method Tag for the method of the given request.
    static io.micrometer.core.instrument.Tag
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates an outcome Tag derived from the status of the given response.
    static io.micrometer.core.instrument.Tag
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a status Tag derived from the status of the given response.
    static io.micrometer.core.instrument.Tag
    uri(String uriTemplate)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a uri Tag from the given uriTemplate.
    static io.micrometer.core.instrument.Tag
    uri(HttpRequest request)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a uri Tag for the URI of the given request.

    Methods inherited from class java.lang.Object

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

    • method

      public static io.micrometer.core.instrument.Tag method(HttpRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a method Tag for the method of the given request.
      Parameters:
      request - the request
      Returns:
      the method tag
    • uri

      public static io.micrometer.core.instrument.Tag uri(HttpRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a uri Tag for the URI of the given request.
      Parameters:
      request - the request
      Returns:
      the uri tag
    • uri

      public static io.micrometer.core.instrument.Tag uri(String uriTemplate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a uri Tag from the given uriTemplate.
      Parameters:
      uriTemplate - the template
      Returns:
      the uri tag
    • status

      public static io.micrometer.core.instrument.Tag status(ClientHttpResponse response)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a status Tag derived from the status of the given response.
      Parameters:
      response - the response
      Returns:
      the status tag
    • clientName

      public static io.micrometer.core.instrument.Tag clientName(HttpRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a client.name Tag derived from the host of the URI of the given request.
      Parameters:
      request - the request
      Returns:
      the client.name tag
    • outcome

      public static io.micrometer.core.instrument.Tag outcome(ClientHttpResponse response)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an outcome Tag derived from the status of the given response.
      Parameters:
      response - the response
      Returns:
      the outcome tag
      Since:
      2.2.0