Skip to content

Commit 055186d

Browse files
authored
fix(gossipsub): duplicate metrics
Pull-Request: #6283.
1 parent a7d59cb commit 055186d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

protocols/gossipsub/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 0.50.0
22

3+
- Rename metric `topic_msg_sent_bytes` to `topic_msg_last_sent_bytes` for accuracy.
4+
See [PR 6283](https://github.com/libp2p/rust-libp2p/pull/6283)
5+
36
- Add extra metrics for bytes received and sent, filtered and unfiltered for each topic.
47
See [PR 6192](https://github.com/libp2p/rust-libp2p/pull/6192)
58

protocols/gossipsub/src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ impl Metrics {
283283
);
284284

285285
let topic_msg_last_sent_bytes = register_family!(
286-
"topic_msg_sent_bytes",
286+
"topic_msg_last_sent_bytes",
287287
"bytes from the last gossip message sent to each topic (after duplicates being filtered)"
288288
);
289289

0 commit comments

Comments
 (0)