23 releases (15 stable)

18.0.0 Jan 7, 2025
17.0.0 Apr 8, 2024
16.0.0 Feb 26, 2024
15.0.0 Feb 13, 2024
0.0.0 Nov 21, 2022

#8 in #runtimes

Download history 3093/week @ 2024-10-28 2650/week @ 2024-11-04 2156/week @ 2024-11-11 3069/week @ 2024-11-18 2864/week @ 2024-11-25 3227/week @ 2024-12-02 3702/week @ 2024-12-09 3820/week @ 2024-12-16 2011/week @ 2024-12-23 2044/week @ 2024-12-30 3550/week @ 2025-01-06 4335/week @ 2025-01-13 4601/week @ 2025-01-20 4192/week @ 2025-01-27 3586/week @ 2025-02-03 4145/week @ 2025-02-10

16,790 downloads per month
Used in 149 crates (22 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

Release

Polkadot SDK Stable 2412


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–16MB
~204K SLoC