-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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(net): Metered senders #726
Conversation
Codecov Report
@@ Coverage Diff @@
## main #726 +/- ##
==========================================
+ Coverage 73.55% 73.83% +0.28%
==========================================
Files 280 284 +4
Lines 29898 30157 +259
==========================================
+ Hits 21991 22267 +276
+ Misses 7907 7890 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
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.
Wrapping around the type and tracking makes sense, do we intend to integrate this anywhere in this PR?
Sender, | ||
}; | ||
|
||
/// Network throughput metrics |
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.
this is not limited to network, we can use this for any bounded channel that we want to monitor.
so perhaps we move this to a separate crate?
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.
I moved it to common/metrics/metered_sender.rs
, that work?
Co-authored-by: Bjerg <[email protected]>
Am happy to! Would appreciate any pointers on where this would be the highest signal, maybe in the |
Marked this as blocked on #785 |
Note to self: add docs to |
making use of dynamic scope now - any suggestions on where to integrate this metric? which senders do we care the most about? @gakonst |
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.
This probably should be under crates/metrics right?
@mattsse when u get a chance if you can point at some senders that would benefit from this
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
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 - we should identify where we have senders and wrap them around this in a followup
Co-authored-by: Bjerg <[email protected]>
Co-authored-by: Bjerg <[email protected]>
Co-authored-by: Bjerg <[email protected]>
Resolves #140, intended to build on top of #707