From 5e476dd7d2b08196844e9f8e0c19bef8bd29fbbd Mon Sep 17 00:00:00 2001 From: kdeme Date: Tue, 14 Jan 2020 15:36:21 +0100 Subject: [PATCH] Make counter metrics public --- eth/p2p/rlpx_protocols/waku_protocol.nim | 14 +++++++------- eth/p2p/rlpx_protocols/whisper_protocol.nim | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/eth/p2p/rlpx_protocols/waku_protocol.nim b/eth/p2p/rlpx_protocols/waku_protocol.nim index ea8c0b1..3f6fa26 100644 --- a/eth/p2p/rlpx_protocols/waku_protocol.nim +++ b/eth/p2p/rlpx_protocols/waku_protocol.nim @@ -47,19 +47,19 @@ export logScope: topics = "waku" -declareCounter valid_envelopes, +declarePublicCounter valid_envelopes, "Received & posted valid envelopes" -declareCounter dropped_low_pow_envelopes, +declarePublicCounter dropped_low_pow_envelopes, "Dropped envelopes because of too low PoW" -declareCounter dropped_too_large_envelopes, +declarePublicCounter dropped_too_large_envelopes, "Dropped envelopes because larger than maximum allowed size" -declareCounter dropped_bloom_filter_mismatch_envelopes, +declarePublicCounter dropped_bloom_filter_mismatch_envelopes, "Dropped envelopes because not matching with bloom filter" -declareCounter dropped_topic_mismatch_envelopes, +declarePublicCounter dropped_topic_mismatch_envelopes, "Dropped envelopes because of not matching topics" -declareCounter dropped_benign_duplicate_envelopes, +declarePublicCounter dropped_benign_duplicate_envelopes, "Dropped benign duplicate envelopes" -declareCounter dropped_malicious_duplicate_envelopes, +declarePublicCounter dropped_malicious_duplicate_envelopes, "Dropped malicious duplicate envelopes" const diff --git a/eth/p2p/rlpx_protocols/whisper_protocol.nim b/eth/p2p/rlpx_protocols/whisper_protocol.nim index 47fbaf7..22d5a25 100644 --- a/eth/p2p/rlpx_protocols/whisper_protocol.nim +++ b/eth/p2p/rlpx_protocols/whisper_protocol.nim @@ -42,17 +42,17 @@ export logScope: topics = "whisper" -declareCounter valid_envelopes, +declarePublicCounter valid_envelopes, "Received & posted valid envelopes" -declareCounter dropped_low_pow_envelopes, +declarePublicCounter dropped_low_pow_envelopes, "Dropped envelopes because of too low PoW" -declareCounter dropped_too_large_envelopes, +declarePublicCounter dropped_too_large_envelopes, "Dropped envelopes because larger than maximum allowed size" -declareCounter dropped_bloom_filter_mismatch_envelopes, +declarePublicCounter dropped_bloom_filter_mismatch_envelopes, "Dropped envelopes because not matching with bloom filter" -declareCounter dropped_benign_duplicate_envelopes, +declarePublicCounter dropped_benign_duplicate_envelopes, "Dropped benign duplicate envelopes" -declareCounter dropped_malicious_duplicate_envelopes, +declarePublicCounter dropped_malicious_duplicate_envelopes, "Dropped malicious duplicate envelopes" const