prioritized-metered-channel

Crates.ioprioritized-metered-channel
lib.rsprioritized-metered-channel
version0.6.1
sourcesrc
created_at2022-05-18 20:59:07.16444
updated_at2024-01-19 10:56:27.390019
descriptionChannels with built-in observability and optional message priorizitazion
homepage
repositoryhttps://github.com/paritytech/orchestra.git
max_upload_size
id589249
size53,015
Core devs (github:paritytech:core-devs)

documentation

README

prioritized-metered-channel

Extends the futures provided channels with a metrics accessor.

Implements a metered variant of mpsc channels that provide an interface to extract metrics. The following metrics are available:

  • The amount of messages sent on a channel, in aggregate.
  • The amount of messages received on a channel, in aggregate.
  • How many times the caller blocked when sending messages on a channel.
  • Time of flight in micro seconds (us)

Note: Currently there is no prioritization built in! It's on the agenda, but not quite there yet.

Commit count: 116

cargo fmt