Merge branch 'refs/heads/7311-add-peertask-foundation-code' into 7311-add-GetReceiptsFromPeerTask

pull/7638/head
Matilda Clerke 1 month ago
commit a59bd30794
  1. 24
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/peertask/PeerTaskExecutor.java

@ -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<>();
} }

Loading…
Cancel
Save