4 releases (major breaking)

new 7.0.0 Mar 26, 2023
6.0.0 Feb 26, 2023
5.0.0 Jan 9, 2023
4.0.0 Dec 14, 2022
0.0.0 Nov 21, 2022

#1780 in Magic Beans

Download history 491/week @ 2022-12-13 513/week @ 2022-12-20 120/week @ 2022-12-27 33/week @ 2023-01-03 311/week @ 2023-01-10 250/week @ 2023-01-17 549/week @ 2023-01-24 472/week @ 2023-01-31 342/week @ 2023-02-07 323/week @ 2023-02-14 827/week @ 2023-02-21 414/week @ 2023-02-28 137/week @ 2023-03-07 120/week @ 2023-03-14 257/week @ 2023-03-21

1,428 downloads per month
Used in 55 crates (19 directly)

Apache-2.0

265KB
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

~4.5–9MB
~163K SLoC