java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.client.WebClientExchangeTags

@Deprecated(since="3.0.0", forRemoval=true) public final class WebClientExchangeTags 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 WebClient.
Since:
2.1.0
Author:
Brian Clozel, Nishant Raut
  • 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 URL 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
    status(ClientResponse response, Throwable throwable)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a status Tag derived from the ClientResponse.statusCode() of the given response if available, the thrown exception otherwise, or considers the request as Cancelled as a last resort.
    static io.micrometer.core.instrument.Tag
    uri(ClientRequest request)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a uri Tag for the URI path 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(ClientRequest 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(ClientRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a uri Tag for the URI path of the given request.
      Parameters:
      request - the request
      Returns:
      the uri tag
    • status

      public static io.micrometer.core.instrument.Tag status(ClientResponse response, Throwable throwable)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a status Tag derived from the ClientResponse.statusCode() of the given response if available, the thrown exception otherwise, or considers the request as Cancelled as a last resort.
      Parameters:
      response - the response
      throwable - the exception
      Returns:
      the status tag
      Since:
      2.3.0
    • clientName

      public static io.micrometer.core.instrument.Tag clientName(ClientRequest 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 URL of the given request.
      Parameters:
      request - the request
      Returns:
      the client.name tag
    • outcome

      public static io.micrometer.core.instrument.Tag outcome(ClientResponse 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