Crates.io | sc-utils |
lib.rs | sc-utils |
version | 17.0.0 |
source | src |
created_at | 2022-11-21 10:41:46.420405 |
updated_at | 2024-04-08 17:14:59.253631 |
description | I/O for Substrate runtimes (polkadot v1.10.0) |
homepage | https://substrate.io |
repository | https://github.com/paritytech/polkadot-sdk.git |
max_upload_size | |
id | 720045 |
size | 51,915 |
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