Class RequestMetricInfo
java.lang.Object
io.quarkus.micrometer.runtime.binder.RequestMetricInfo
- Direct Known Subclasses:
HttpRequestMetric,RestClientMetricsFilter.RestClientMetricInfo,VertxHttpClientMetrics.RequestTracker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StringapplyMatchPatterns(String path, Map<Pattern, String> matchPatterns) protected StringapplyTemplateMatching(String path) Subclasses should override with appropriate mechanisms for finding templated urlsprotected static StringfilterIgnored(String path, List<Pattern> ignorePatterns) Return path or null if it should be ignoredprotected StringNormalize and filter request path against match patternsio.micrometer.core.instrument.Timer.Sampleprotected static StringnormalizePath(String uri) setSample(io.micrometer.core.instrument.Timer.Sample sample)
-
Field Details
-
log
static final org.jboss.logging.Logger log -
TRAILING_SLASH_PATTERN
-
MULTIPLE_SLASH_PATTERN
-
ROOT
- See Also:
-
HTTP_REQUEST_PATH
- See Also:
-
sample
protected io.micrometer.core.instrument.Timer.Sample sampleStore the sample used to measure the request
-
-
Constructor Details
-
RequestMetricInfo
public RequestMetricInfo()
-
-
Method Details
-
setSample
-
getSample
public io.micrometer.core.instrument.Timer.Sample getSample() -
getNormalizedUriPath
protected String getNormalizedUriPath(Map<Pattern, String> matchPatterns, List<Pattern> ignorePatterns, String uri) Normalize and filter request path against match patterns- Parameters:
uri- Uri for requestignorePatterns-matchPatterns-- Returns:
- final uri for tag, or null to skip measurement
-
applyTemplateMatching
Subclasses should override with appropriate mechanisms for finding templated urls -
applyMatchPatterns
-
filterIgnored
Return path or null if it should be ignored -
normalizePath
-