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

#592 in Magic Beans

Download history 1209/week @ 2024-01-06 1176/week @ 2024-01-13 1309/week @ 2024-01-20 697/week @ 2024-01-27 1024/week @ 2024-02-03 1730/week @ 2024-02-10 1842/week @ 2024-02-17 2570/week @ 2024-02-24 1090/week @ 2024-03-02 1529/week @ 2024-03-09 1762/week @ 2024-03-16 1778/week @ 2024-03-23 1929/week @ 2024-03-30 2027/week @ 2024-04-06 1585/week @ 2024-04-13 1391/week @ 2024-04-20

7,142 downloads per month
Used in 129 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
~224K SLoC