Add Ability to Trace IDONTWANT Control Messages (#14778)

* Trace IDONTWANT Requests

* Changelog
This commit is contained in:
Nishant Das
2025-01-06 18:13:22 +08:00
committed by GitHub
parent 97d7ca828b
commit 1efca9c28d
2 changed files with 2 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve
- Add field param placeholder for Electra blob target and max to pass spec tests.
- Add EIP-7691: Blob throughput increase.
- SSZ files generation: Remove the `// Hash: ...` header.
- Trace IDONTWANT Messages in Pubsub.
### Changed

View File

@@ -108,6 +108,7 @@ func (g gossipTracer) setMetricFromRPC(act action, subCtr prometheus.Counter, pu
ctrlCtr.WithLabelValues("prune").Add(float64(len(rpc.Control.Prune)))
ctrlCtr.WithLabelValues("ihave").Add(float64(len(rpc.Control.Ihave)))
ctrlCtr.WithLabelValues("iwant").Add(float64(len(rpc.Control.Iwant)))
ctrlCtr.WithLabelValues("idontwant").Add(float64(len(rpc.Control.Idontwant)))
}
for _, msg := range rpc.Publish {
// For incoming messages from pubsub, we do not record metrics for them as these values