21 releases (13 major breaking)

16.0.0 Feb 26, 2024
15.0.0 Feb 13, 2024
14.0.0 Jan 23, 2024
13.0.0 Dec 12, 2023
0.0.0 Nov 21, 2022

#636 in Magic Beans

Download history 738/week @ 2023-11-30 1332/week @ 2023-12-07 822/week @ 2023-12-14 339/week @ 2023-12-21 545/week @ 2023-12-28 1440/week @ 2024-01-04 1180/week @ 2024-01-11 1228/week @ 2024-01-18 823/week @ 2024-01-25 898/week @ 2024-02-01 1550/week @ 2024-02-08 1822/week @ 2024-02-15 2471/week @ 2024-02-22 1433/week @ 2024-02-29 1428/week @ 2024-03-07 1111/week @ 2024-03-14

6,829 downloads per month
Used in 125 crates (21 directly)

Apache-2.0

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

~6–14MB
~132K SLoC