Add a metric to display pruning of the node's peer
This commit is contained in:
@@ -559,6 +559,7 @@ func (trw *tracerWrapper) Trace(evt *pubsub_pb.TraceEvent) {
|
||||
}
|
||||
|
||||
case pubsub_pb.TraceEvent_PRUNE:
|
||||
stats.Record(context.TODO(), metrics.PubsubPruneMessage.M(1))
|
||||
if trw.traceMessage(evt.GetPrune().GetTopic()) {
|
||||
if trw.lp2pTracer != nil {
|
||||
trw.lp2pTracer.Trace(evt)
|
||||
|
||||
Reference in New Issue
Block a user