Skip to content
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

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Feb 21, 2023

fixes: #2021

@sukunrt sukunrt marked this pull request as ready for review February 21, 2023 12:36
@p-shahi
Copy link
Member

p-shahi commented Feb 21, 2023

Please update the Changelog.md file in this section with these changes https://github.com/libp2p/go-libp2p/blob/master/CHANGELOG.md#additional-metrics-

@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
EarlyMuxerSelection bool
UsedEarlyMuxerNegotiation bool

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

security protocol.ID
muxer protocol.ID
security protocol.ID
earlyMuxerSelection bool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
earlyMuxerSelection bool
usedEarlyMuxerNegotiation bool

Copy link
Member Author

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"
},
{
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@@ -1059,6 +1059,139 @@
"title": "Connection Duration",
"type": "timeseries"
},
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

swarm metrics: Track if a connection used early muxer negotiation.
3 participants