public class RequestMetric extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
HTTP_REQUEST_PATH |
(package private) static String |
HTTP_REQUEST_PATH_MATCHED |
(package private) boolean |
measure
Do not measure requests until/unless a uri path is set
|
(package private) static String |
METRICS_CONTEXT |
(package private) String |
path
URI path used as a tag value for non-error requests
|
(package private) boolean |
pathMatched
True IFF the path was revised by a matcher expression
|
(package private) io.vertx.ext.web.RoutingContext |
routingContext |
(package private) io.micrometer.core.instrument.Timer.Sample |
sample
Store the sample used to measure the request
|
(package private) static Pattern |
VERTX_ROUTE_PARAM |
(package private) static ConcurrentHashMap<String,String> |
vertxRoutePath
Cache of vert.x resolved paths: /item/:id --> /item/{id}
|
| Constructor and Description |
|---|
RequestMetric() |
| Modifier and Type | Method and Description |
|---|---|
(package private) String |
getHttpRequestPath() |
static RequestMetric |
retrieveRequestMetric(io.vertx.core.Context context)
Retrieve and remove the RequestMetric from the Vertx Context
|
static void |
setRequestMetric(io.vertx.core.Context context,
RequestMetric requestMetric)
Stash the RequestMetric in the Vertx Context
|
static final String METRICS_CONTEXT
static final String HTTP_REQUEST_PATH
static final String HTTP_REQUEST_PATH_MATCHED
static final Pattern VERTX_ROUTE_PARAM
static final ConcurrentHashMap<String,String> vertxRoutePath
volatile io.vertx.ext.web.RoutingContext routingContext
boolean measure
String path
boolean pathMatched
io.micrometer.core.instrument.Timer.Sample sample
public static void setRequestMetric(io.vertx.core.Context context,
RequestMetric requestMetric)
context - Vertx context to store RequestMetric inrequestMetric - VertxMeterFilterpublic static RequestMetric retrieveRequestMetric(io.vertx.core.Context context)
context - VertxMeterFilterString getHttpRequestPath()
Copyright © 2020 JBoss by Red Hat. All rights reserved.