23 releases (15 stable)

new 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

#721 in Magic Beans

Download history 2451/week @ 2024-09-19 3506/week @ 2024-09-26 2471/week @ 2024-10-03 2422/week @ 2024-10-10 3613/week @ 2024-10-17 3392/week @ 2024-10-24 2845/week @ 2024-10-31 2107/week @ 2024-11-07 2798/week @ 2024-11-14 3131/week @ 2024-11-21 2999/week @ 2024-11-28 3395/week @ 2024-12-05 4177/week @ 2024-12-12 2445/week @ 2024-12-19 1902/week @ 2024-12-26 2871/week @ 2025-01-02

11,895 downloads per month
Used in 138 crates (23 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

~6–15MB
~197K SLoC