22 releases (14 major breaking)

17.0.0 Apr 8, 2024
16.0.0 Feb 26, 2024
15.0.0 Feb 13, 2024
14.0.0 Jan 23, 2024
0.0.0 Nov 21, 2022

#651 in Magic Beans

Download history 802/week @ 2024-01-29 1065/week @ 2024-02-05 1793/week @ 2024-02-12 1992/week @ 2024-02-19 2341/week @ 2024-02-26 1183/week @ 2024-03-04 1430/week @ 2024-03-11 1811/week @ 2024-03-18 1773/week @ 2024-03-25 1923/week @ 2024-04-01 2131/week @ 2024-04-08 1499/week @ 2024-04-15 1402/week @ 2024-04-22 1747/week @ 2024-04-29 1680/week @ 2024-05-06 1630/week @ 2024-05-13

6,569 downloads per month
Used in 132 crates (21 directly)

Apache-2.0

280KB
6K SLoC

Utilities Primitives for Substrate

This crate provides mpsc::tracing_unbounded function that returns wrapper types to async_channel::Sender<T> and async_channel::Receiver<T>, which register every send/received/dropped action happened on the channel.

Also this wrapper creates and registers a prometheus vector with name unbounded_channel_len and labels:

Label Description
entity Name of channel passed to tracing_unbounded
action One of send/received/dropped

License: Apache-2.0


lib.rs:

Utilities Primitives for Substrate

This crate provides mpsc::tracing_unbounded function that returns wrapper types to async_channel::Sender<T> and async_channel::Receiver<T>, which register every send/received/dropped action happened on the channel.

Also this wrapper creates and registers a prometheus vector with name unbounded_channel_len and labels:

Label Description
entity Name of channel passed to tracing_unbounded
action One of send/received/dropped

Dependencies

~7–17MB
~221K SLoC