mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 02:57:57 +00:00
16 lines
654 B
Markdown
16 lines
654 B
Markdown
# 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
|