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

#6 in #unbounded-channel

Download history 1823/week @ 2024-05-20 2281/week @ 2024-05-27 2211/week @ 2024-06-03 1869/week @ 2024-06-10 1516/week @ 2024-06-17 2702/week @ 2024-06-24 1086/week @ 2024-07-01 1550/week @ 2024-07-08 2640/week @ 2024-07-15 1532/week @ 2024-07-22 1776/week @ 2024-07-29 1987/week @ 2024-08-05 2352/week @ 2024-08-12 2744/week @ 2024-08-19 2372/week @ 2024-08-26 1356/week @ 2024-09-02

8,988 downloads per month
Used in 131 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


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