-
Notifications
You must be signed in to change notification settings - Fork 954
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
feat(p2p): add native libp2p debug metrics #1795
Conversation
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.
Initial quick look
Codecov Report
@@ Coverage Diff @@
## main #1795 +/- ##
==========================================
- Coverage 54.95% 54.63% -0.33%
==========================================
Files 216 216
Lines 13925 14009 +84
==========================================
+ Hits 7653 7654 +1
- Misses 5460 5537 +77
- Partials 812 818 +6
... and 6 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Could you please elaborate what is ERROR
level metrics and how it would be used? It feel counterintuitive that ERROR level is below DEBUG, when in logging it is the highest.
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.
LGTM. Thank you
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.
There is a new example for metrics usage in libp2p libp2p/go-libp2p#2232
Let's double-check it to ensure we didn't miss anything.
@Wondertan I've checked on libp2p/go-libp2p#2232 and nothing seems to be new. We should be good. |
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.
small nits, should be quick 🙏🏻
Overview
This PR introduces libp2p metrics. The metrics that are introduced in this PR are plentiful, and it's sufficient to list the libp2p components they cover:
(check the following link)
Usage
Run your node with flag:
Results
Dashboards:
Checklist