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

tracing: instrument mpsc channels #4644

Closed
wants to merge 1 commit into from

Commits on Apr 29, 2022

  1. tracing: instrument mpsc channels

    This commit adds tracing to both bounded and unbounded mpsc channels.
    
    Unbounded channels record the following state fields:
    
    	tx: number of items sent through the channel
    	rx: number of items received through the channel
    	values: number of items currently held in the channel
    	tx_handles: number of Sender handles for the channel
    	rx_dropped: true if the Receiver has dropped
    
    Bounded channels record the same fields as above, with the addition of
    the static "capacity" field set to the channel buffer size.
    domodwyer committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    4526247 View commit details
    Browse the repository at this point in the history