@Component public class MetricsAnnotation extends Object
Constructor and Description |
---|
MetricsAnnotation(io.micrometer.core.instrument.MeterRegistry meterRegistry)
Ctor
|
Modifier and Type | Method and Description |
---|---|
void |
countRequest(RouteCounter routeCounter)
Increment route total usage
|
void |
finishedRequest(RouteGauge routeGauge)
Decrement route current usage after each request
|
void |
gaugeRequest(RouteGauge routeGauge)
Increment route current usage after each request
|
Map<String,io.micrometer.core.instrument.Counter> |
getCounters() |
Map<String,AtomicInteger> |
getGauges() |
public MetricsAnnotation(io.micrometer.core.instrument.MeterRegistry meterRegistry)
meterRegistry
- Micrometer registrypublic void gaugeRequest(RouteGauge routeGauge)
routeGauge
- Route infospublic void finishedRequest(RouteGauge routeGauge)
routeGauge
- Route infospublic void countRequest(RouteCounter routeCounter)
routeCounter
- Route infospublic Map<String,AtomicInteger> getGauges()
Copyright © 2023. All rights reserved.