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 2762/week @ 2024-11-15 3031/week @ 2024-11-22 3226/week @ 2024-11-29 3386/week @ 2024-12-06 4113/week @ 2024-12-13 2234/week @ 2024-12-20 1912/week @ 2024-12-27 3157/week @ 2025-01-03 4387/week @ 2025-01-10 4283/week @ 2025-01-17 4572/week @ 2025-01-24 3281/week @ 2025-01-31 4435/week @ 2025-02-07 3882/week @ 2025-02-14 4316/week @ 2025-02-21 3663/week @ 2025-02-28

16,733 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

~8–16MB
~228K SLoC