Class HttpRequestMetric
- java.lang.Object
-
- io.quarkus.micrometer.runtime.binder.RequestMetricInfo
-
- io.quarkus.micrometer.runtime.binder.vertx.HttpRequestMetric
-
public class HttpRequestMetric extends RequestMetricInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcurrentRoutePathprotected StringinitialPathprotected io.vertx.core.http.impl.HttpServerRequestInternalrequestprotected StringtemplatePathstatic PatternVERTX_ROUTE_PARAM(package private) static ConcurrentHashMap<String,String>vertxWebToUriTemplateCache of vert.x resolved paths: /item/:id --> /item/{id}-
Fields inherited from class io.quarkus.micrometer.runtime.binder.RequestMetricInfo
HTTP_REQUEST_PATH, MULTIPLE_SLASH_PATTERN, ROOT, sample, TRAILING_SLASH_PATTERN
-
-
Constructor Summary
Constructors Constructor Description HttpRequestMetric(io.vertx.core.spi.observability.HttpRequest request)HttpRequestMetric(String uri)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendCurrentRoutePath(String path)StringapplyTemplateMatching(String path)Subclasses should override with appropriate mechanisms for finding templated urlsStringgetNormalizedUriPath(Map<Pattern,String> matchPatterns, List<Pattern> ignorePatterns)static HttpRequestMetricgetRequestMetric(io.vertx.ext.web.RoutingContext context)(package private) StringgetUrlTemplatePath()io.vertx.core.http.impl.HttpServerRequestInternalrequest()voidsetTemplatePath(String path)StringtoString()-
Methods inherited from class io.quarkus.micrometer.runtime.binder.RequestMetricInfo
filterIgnored, getNormalizedUriPath, getSample, normalizePath, setSample
-
-
-
-
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)
-
HttpRequestMetric
public HttpRequestMetric(io.vertx.core.spi.observability.HttpRequest request)
-
-
Method Detail
-
getNormalizedUriPath
public String getNormalizedUriPath(Map<Pattern,String> matchPatterns, List<Pattern> ignorePatterns)
-
applyTemplateMatching
public String applyTemplateMatching(String path)
Description copied from class:RequestMetricInfoSubclasses should override with appropriate mechanisms for finding templated urls- Overrides:
applyTemplateMatchingin classRequestMetricInfo
-
request
public io.vertx.core.http.impl.HttpServerRequestInternal request()
-
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()
-
-