Class HttpRequestMetric

java.lang.Object
io.quarkus.micrometer.runtime.binder.RequestMetricInfo
io.quarkus.micrometer.runtime.binder.vertx.HttpRequestMetric

public class HttpRequestMetric extends RequestMetricInfo
  • Field Details

    • VERTX_ROUTE_PARAM

      public static final Pattern VERTX_ROUTE_PARAM
    • vertxWebToUriTemplate

      static final ConcurrentHashMap<String,String> vertxWebToUriTemplate
      Cache of vert.x resolved paths: /item/:id --> /item/{id}
    • request

      protected io.vertx.core.http.impl.HttpServerRequestInternal request
    • initialPath

      protected String initialPath
    • templatePath

      protected String templatePath
    • currentRoutePath

      protected String currentRoutePath
  • Constructor Details

    • HttpRequestMetric

      public HttpRequestMetric(String uri, LongAdder activeRequests)
    • HttpRequestMetric

      public HttpRequestMetric(io.vertx.core.spi.observability.HttpRequest request, LongAdder activeRequests)
  • Method Details

    • getNormalizedUriPath

      public String getNormalizedUriPath(Map<Pattern,String> matchPatterns, List<Pattern> ignorePatterns)
    • applyTemplateMatching

      public String applyTemplateMatching(String path)
      Description copied from class: RequestMetricInfo
      Subclasses should override with appropriate mechanisms for finding templated urls
      Overrides:
      applyTemplateMatching in class RequestMetricInfo
    • request

      public io.vertx.core.http.impl.HttpServerRequestInternal request()
    • requestStarted

      public void requestStarted()
    • requestEnded

      public void requestEnded()
    • setTemplatePath

      public void setTemplatePath(String path)
    • appendCurrentRoutePath

      public void appendCurrentRoutePath(String path)
    • getRequestMetric

      public static HttpRequestMetric getRequestMetric(io.vertx.ext.web.RoutingContext context)
    • getUrlTemplatePath

      String getUrlTemplatePath()
    • toString

      public String toString()
      Overrides:
      toString in class Object