referrerpolicy=no-referrer-when-downgrade

Trait relay_utils::metrics::Metric

source ·
pub trait Metric: Clone + Send + Sync + 'static {
    // Required method
    fn register(&self, registry: &Registry) -> Result<(), PrometheusError>;
}
Expand description

Metric API.

Required Methods§

source

fn register(&self, registry: &Registry) -> Result<(), PrometheusError>

Object Safety§

This trait is not object safe.

Implementors§