iroh_metrics::service

Type Alias RwLockRegistry

Source
pub type RwLockRegistry = Arc<RwLock<Registry>>;
Available on crate feature service only.
Expand description

A cloneable Registry in a read-write lock.

Useful if you need mutable access to a registry, while also using the services defined in crate::service.

Aliased Type§

struct RwLockRegistry { /* private fields */ }

Trait Implementations§

Source§

impl MetricsSource for RwLockRegistry

Source§

fn encode_openmetrics(&self, writer: &mut impl Write) -> Result<(), Error>

Encodes all metrics into a string in the OpenMetrics text format. Read more
Source§

fn encode_openmetrics_to_string(&self) -> Result<String, Error>

Encodes the metrics in the OpenMetrics text format into a newly allocated string. Read more