Class HttpRequestMetric

    • Field Detail

      • 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 Detail

      • HttpRequestMetric

        public HttpRequestMetric​(String uri,
                                 LongAdder activeRequests)
      • HttpRequestMetric

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

      • 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()