soil_client/utils/mod.rs
1// This file is part of Soil.
2
3// Copyright (C) Soil contributors.
4// Copyright (C) Parity Technologies (UK) Ltd.
5// SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later WITH Classpath-exception-2.0
6
7//! Utilities Primitives for Substrate
8//!
9//! This crate provides `mpsc::tracing_unbounded` function that returns wrapper types to
10//! `async_channel::Sender<T>` and `async_channel::Receiver<T>`, which register every
11//! `send`/`received`/`dropped` action happened on the channel.
12//!
13//! Also this wrapper creates and registers a prometheus vector with name `unbounded_channel_len`
14//! and labels:
15//!
16//! | Label | Description |
17//! | ------------ | --------------------------------------------- |
18//! | entity | Name of channel passed to `tracing_unbounded` |
19//! | action | One of `send`/`received`/`dropped` |
20
21pub mod id_sequence;
22pub mod metrics;
23pub mod mpsc;
24pub mod notification;
25pub mod pubsub;
26pub mod status_sinks;