eth/protocols, metrics, p2p: add handler performance metrics

This commit is contained in:
Péter Szilágyi
2021-03-26 14:00:06 +02:00
parent 54c0d573d7
commit 6d7ff6acea
4 changed files with 38 additions and 2 deletions

View File

@ -25,8 +25,17 @@ import (
)
const (
// ingressMeterName is the prefix of the per-packet inbound metrics.
ingressMeterName = "p2p/ingress"
egressMeterName = "p2p/egress"
// egressMeterName is the prefix of the per-packet outbound metrics.
egressMeterName = "p2p/egress"
// HandleHistName is the prefix of the per-packet serving time histograms.
HandleHistName = "p2p/handle"
// WaitHistName is the prefix of the per-packet (req only) waiting time histograms.
WaitHistName = "p2p/wait"
)
var (