p2p/discover: add traffic metrics#27008
Merged
fjl merged 3 commits intoethereum:masterfrom Apr 25, 2023
Merged
Conversation
holiman
reviewed
Mar 30, 2023
|
|
||
| func newMeteredConn(conn UDPConn) UDPConn { | ||
| // Short circuit if metrics are disabled | ||
| if !metrics.Enabled { |
Member
There was a problem hiding this comment.
I am not fully sure that we should use metrics.Enabled or metrics.EnabledExpensive.
The former one will be enabled once the metric system is turned on. The latter one is more for debug purpose which might impact runtime performance.
Contributor
There was a problem hiding this comment.
It's OK to use metrics.Enabled for discovery. The packet rate is not so high.
rjl493456442
approved these changes
Mar 30, 2023
shekhirin
pushed a commit
to shekhirin/go-ethereum
that referenced
this pull request
Jun 6, 2023
Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain> Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
devopsbo3
pushed a commit
to HorizenOfficial/go-ethereum
that referenced
this pull request
Nov 10, 2023
Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain> Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
devopsbo3
added a commit
to HorizenOfficial/go-ethereum
that referenced
this pull request
Nov 10, 2023
This reverts commit 11fafa4.
devopsbo3
added a commit
to HorizenOfficial/go-ethereum
that referenced
this pull request
Nov 10, 2023
This reverts commit 11fafa4.
4 tasks
nibty
pushed a commit
to FairCrypto/go-ethereum
that referenced
this pull request
Apr 10, 2024
Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain> Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
jakub-freebit
pushed a commit
to fblch/go-ethereum
that referenced
this pull request
Jul 3, 2025
Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain> Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
jakub-freebit
pushed a commit
to fblch/go-ethereum
that referenced
this pull request
Sep 3, 2025
Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain> Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
jakub-freebit
pushed a commit
to fblch/go-ethereum
that referenced
this pull request
Sep 4, 2025
Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain> Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
jakub-freebit
pushed a commit
to fblch/go-ethereum
that referenced
this pull request
Sep 16, 2025
Co-authored-by: Exca-DK <dev@DESKTOP-RI45P4J.localdomain> Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds similar to p2p/metrics metered connection for discovery module. The aim is to have more detailed information about network usage which currently isn't tracked for discV4 and discV5.