Class DefaultUriMapper

java.lang.Object
io.micrometer.core.instrument.binder.httpcomponents.DefaultUriMapper
All Implemented Interfaces:
Function<org.apache.http.HttpRequest,String>

@Deprecated public class DefaultUriMapper extends Object implements Function<org.apache.http.HttpRequest,String>
Deprecated.
as of 1.12.5 in favor of an HttpClientContext value with ApacheHttpClientObservationConvention.URI_TEMPLATE_ATTRIBUTE as key name.
Extracts the URI pattern from the predefined request header, "URI_PATTERN" if available.

See DefaultUriMapper for Apache HTTP client 5 support.

Since:
1.4.0
  • Field Details

    • URI_PATTERN_HEADER

      public static final String URI_PATTERN_HEADER
      Deprecated.
      Header name for URI pattern.
      See Also:
  • Constructor Details

    • DefaultUriMapper

      public DefaultUriMapper()
      Deprecated.
  • Method Details

    • apply

      public String apply(org.apache.http.HttpRequest httpRequest)
      Deprecated.
      Specified by:
      apply in interface Function<org.apache.http.HttpRequest,String>