penumbra_sdk_auction/component/
metrics.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! Crate-specific metrics functionality.
//!
//! This module re-exports the contents of the `metrics` crate.  This is
//! effectively a way to monkey-patch the functions in this module into the
//! `metrics` crate, at least from the point of view of the other code in this
//! crate.
//!
//! Code in this crate that wants to use metrics should `use crate::metrics;`,
//! so that this module shadows the `metrics` crate.
//!
//! This trick is probably good to avoid in general, because it could be
//! confusing, but in this limited case, it seems like a clean option.

pub use metrics::*;

/// Registers all metrics used by this crate.
pub fn register_metrics() {
    //     describe_gauge!(
    //         SOMETHING_TO_MEASURE,
    //         Unit::Count,
    //         "A metric that is useful to measure at the resolution of a full node"
    //     );
}

// pub const SOMETHING_TO_MEASURE: &str = "penumbra_auction_something_to_measure";