tracing: mpsc channel size metrics #6314
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-sync
Module: tokio/sync
M-tracing
Tracing support in Tokio
I'm usually choosing channel sizes intuitively. I frequently miss having empirical data on how full the channels in my system are during normal operation or more exotic load situations.
I'd like to either have public functions on the
mpsc::Sender
that allow me to see how many elements are in there, like crossbeam::channel::Sender::len.It would also be fine to emit the channel length as a metric of sorts, like attempted in this PR.
The text was updated successfully, but these errors were encountered: