|
|
@ -56,39 +56,39 @@ public class PeerTaskExecutor { |
|
|
|
requestTimer = |
|
|
|
requestTimer = |
|
|
|
metricsSystem.createLabelledTimer( |
|
|
|
metricsSystem.createLabelledTimer( |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
"PeerTaskExecutor:RequestTime", |
|
|
|
"request_time", |
|
|
|
"Time taken to send a request and receive a response", |
|
|
|
"Time taken to send a request and receive a response", |
|
|
|
"className"); |
|
|
|
"taskName"); |
|
|
|
partialSuccessCounter = |
|
|
|
partialSuccessCounter = |
|
|
|
metricsSystem.createLabelledCounter( |
|
|
|
metricsSystem.createLabelledCounter( |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
"PeerTaskExecutor:PartialSuccessCounter", |
|
|
|
"partial_success_total", |
|
|
|
"Counter of the number of partial success occurred", |
|
|
|
"Counter of the number of partial success occurred", |
|
|
|
"className"); |
|
|
|
"taskName"); |
|
|
|
timeoutCounter = |
|
|
|
timeoutCounter = |
|
|
|
metricsSystem.createLabelledCounter( |
|
|
|
metricsSystem.createLabelledCounter( |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
"PeerTaskExecutor:TimeoutCounter", |
|
|
|
"timeout_total", |
|
|
|
"Counter of the number of timeouts occurred", |
|
|
|
"Counter of the number of timeouts occurred", |
|
|
|
"className"); |
|
|
|
"taskName"); |
|
|
|
invalidResponseCounter = |
|
|
|
invalidResponseCounter = |
|
|
|
metricsSystem.createLabelledCounter( |
|
|
|
metricsSystem.createLabelledCounter( |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
"PeerTaskExecutor:InvalidResponseCounter", |
|
|
|
"invalid_response_total", |
|
|
|
"Counter of the number of invalid responses received", |
|
|
|
"Counter of the number of invalid responses received", |
|
|
|
"className"); |
|
|
|
"taskName"); |
|
|
|
internalExceptionCounter = |
|
|
|
internalExceptionCounter = |
|
|
|
metricsSystem.createLabelledCounter( |
|
|
|
metricsSystem.createLabelledCounter( |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
"PeerTaskExecutor:InternalExceptionCounter", |
|
|
|
"internal_exception_total", |
|
|
|
"Counter of the number of internal exceptions occurred", |
|
|
|
"Counter of the number of internal exceptions occurred", |
|
|
|
"className"); |
|
|
|
"taskName"); |
|
|
|
inflightRequestGauge = |
|
|
|
inflightRequestGauge = |
|
|
|
metricsSystem.createLabelledGauge( |
|
|
|
metricsSystem.createLabelledGauge( |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
BesuMetricCategory.PEERS, |
|
|
|
"PeerTaskExecutor:InflightRequestGauge", |
|
|
|
"inflight_request_gauge", |
|
|
|
"Gauge of the number of inflight requests", |
|
|
|
"Gauge of the number of inflight requests", |
|
|
|
"className"); |
|
|
|
"taskName"); |
|
|
|
inflightRequestCountByClassName = new ConcurrentHashMap<>(); |
|
|
|
inflightRequestCountByClassName = new ConcurrentHashMap<>(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|