1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2019-2024 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use once_cell::sync::Lazy;
use prometheus_client::metrics::histogram::Histogram;

pub static APPLY_BLOCKS_TIME: Lazy<Histogram> = Lazy::new(|| {
    let metric = crate::metrics::default_histogram();
    crate::metrics::default_registry().register(
        "apply_blocks_time",
        "Duration of routine which applied blocks",
        metric.clone(),
    );
    metric
});