Package io.quarkus.micrometer.runtime
Interface HttpServerMetricsTagsContributor.Context
- Enclosing interface:
HttpServerMetricsTagsContributor
public static interface HttpServerMetricsTagsContributor.Context
-
Method Details
-
request
io.vertx.core.http.HttpServerRequest request() -
response
io.vertx.core.spi.observability.HttpResponse response() -
requestContextLocalData
Gives access to the contextual data that was added while the HTTP request was active. This can be found of doing something likeContextLocals.get(String), however this method is needed becauseContextLocals.get(String)won't work whenHttpServerMetricsTagsContributor.contribute(Context)is called as the HTTP request has already gone away.Beware of high cardinality causing memory usage increase.
Don't use keys that might hold many different values (more than a few dozens). The problem is not just about the current request but the combination of different values from all the requests the server will receive.
-