-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swarm: add early muxer selection to swarm metrics #2119
Conversation
360742e
to
1235885
Compare
Please update the Changelog.md file in this section with these changes https://github.com/libp2p/go-libp2p/blob/master/CHANGELOG.md#additional-metrics- |
core/network/conn.go
Outdated
@@ -43,6 +43,8 @@ type ConnectionState struct { | |||
Security protocol.ID | |||
// the transport used on this connection. For example: tcp | |||
Transport string | |||
// indicates whether StreamMultiplexer was selected using inlined muxer negotiation | |||
EarlyMuxerSelection bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EarlyMuxerSelection bool | |
UsedEarlyMuxerNegotiation bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
p2p/net/upgrader/conn.go
Outdated
security protocol.ID | ||
muxer protocol.ID | ||
security protocol.ID | ||
earlyMuxerSelection bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
earlyMuxerSelection bool | |
usedEarlyMuxerNegotiation bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
@@ -1059,6 +1059,139 @@ | |||
"title": "Connection Duration", | |||
"type": "timeseries" | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latency graphs are not very useful, at least on my node. Not really sure how to fix it though.
Would it make more sense to just use a pie chart here, and show the fraction of early muxer negotiation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
made it a pie chart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
ea699ff
to
21bf54d
Compare
@@ -1059,6 +1059,139 @@ | |||
"title": "Connection Duration", | |||
"type": "timeseries" | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
fixes: #2021