Class HttpRequestMetric
java.lang.Object
io.quarkus.micrometer.runtime.binder.RequestMetricInfo
io.quarkus.micrometer.runtime.binder.vertx.HttpRequestMetric
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected io.vertx.core.http.impl.HttpServerRequestInternalprotected Stringstatic final Pattern(package private) static final ConcurrentHashMap<String,String> Cache 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
ConstructorsConstructorDescriptionHttpRequestMetric(io.vertx.core.spi.observability.HttpRequest request, LongAdder activeRequests) HttpRequestMetric(String uri, LongAdder activeRequests) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendCurrentRoutePath(String path) applyTemplateMatching(String path) Subclasses should override with appropriate mechanisms for finding templated urlsstatic HttpRequestMetricgetRequestMetric(io.vertx.ext.web.RoutingContext context) (package private) Stringio.vertx.core.http.impl.HttpServerRequestInternalrequest()voidvoidvoidsetTemplatePath(String path) toString()Methods inherited from class io.quarkus.micrometer.runtime.binder.RequestMetricInfo
filterIgnored, getNormalizedUriPath, getSample, normalizePath, setSample
-
Field Details
-
VERTX_ROUTE_PARAM
-
vertxWebToUriTemplate
Cache of vert.x resolved paths: /item/:id --> /item/{id} -
request
protected io.vertx.core.http.impl.HttpServerRequestInternal request -
initialPath
-
templatePath
-
currentRoutePath
-
-
Constructor Details
-
HttpRequestMetric
-
HttpRequestMetric
public HttpRequestMetric(io.vertx.core.spi.observability.HttpRequest request, LongAdder activeRequests)
-
-
Method Details
-
getNormalizedUriPath
-
applyTemplateMatching
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() -
requestStarted
public void requestStarted() -
requestEnded
public void requestEnded() -
setTemplatePath
-
appendCurrentRoutePath
-
getRequestMetric
-
getUrlTemplatePath
String getUrlTemplatePath() -
toString
-