public final class TimerExec extends Object implements ExecChainHandler
Timer
per request and a Counter for response codes. Also tracks in-flight
requests via a Gauge tagged as kind=classic.
Meters:
<prefix>.request (timer) — latency, uses MetricConfig.slo and MetricConfig.percentiles<prefix>.response (counter) — result count<prefix>.inflight (gauge, kind=classic) — in-flight request countmethod, status, and when ObservingOptions.TagLevel#EXTENDED
also protocol, target. Any MetricConfig.commonTags are appended.| Constructor and Description |
|---|
TimerExec(io.micrometer.core.instrument.MeterRegistry reg,
ObservingOptions cfg)
Back-compat: two-arg ctor.
|
TimerExec(io.micrometer.core.instrument.MeterRegistry reg,
ObservingOptions cfg,
MetricConfig mc)
Preferred: honors
MetricConfig. |
| Modifier and Type | Method and Description |
|---|---|
ClassicHttpResponse |
execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain) |
public TimerExec(io.micrometer.core.instrument.MeterRegistry reg,
ObservingOptions cfg)
public TimerExec(io.micrometer.core.instrument.MeterRegistry reg,
ObservingOptions cfg,
MetricConfig mc)
MetricConfig.public ClassicHttpResponse execute(ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain) throws IOException, HttpException
execute in interface ExecChainHandlerIOExceptionHttpExceptionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.