stratus::infra::metrics

Function inc_storage_save_block

Source
pub fn inc_storage_save_block(
    duration: Duration,
    storage: impl Into<MetricLabelValue>,
    size_by_tx: impl Into<MetricLabelValue>,
    size_by_gas: impl Into<MetricLabelValue>,
    success: impl Into<MetricLabelValue>,
)
Expand description

Add operation duration to storage_save_block histogram.