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

@Deprecated public class DefaultUriMapper extends Object implements Function<org.apache.hc.core5.http.HttpRequest,String>
Deprecated.
as of 1.12.0 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.
Since:
1.11.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.hc.core5.http.HttpRequest httpRequest)
      Deprecated.
      Specified by:
      apply in interface Function<org.apache.hc.core5.http.HttpRequest,String>