referrerpolicy=no-referrer-when-downgrade

Function relay_utils::metrics::set_gauge_value

source ·
pub fn set_gauge_value<T: Default + Debug, V: Atomic<T = T>, E: Debug>(
    gauge: &Gauge<V>,
    value: Result<Option<T>, E>,
)
Expand description

Set value of gauge metric.

If value is Ok(None) or Err(_), metric would have default value.