penumbra_sdk_auction/component/
metrics.rs

1//! Crate-specific metrics functionality.
2//!
3//! This module re-exports the contents of the `metrics` crate.  This is
4//! effectively a way to monkey-patch the functions in this module into the
5//! `metrics` crate, at least from the point of view of the other code in this
6//! crate.
7//!
8//! Code in this crate that wants to use metrics should `use crate::metrics;`,
9//! so that this module shadows the `metrics` crate.
10//!
11//! This trick is probably good to avoid in general, because it could be
12//! confusing, but in this limited case, it seems like a clean option.
13
14pub use metrics::*;
15
16/// Registers all metrics used by this crate.
17pub fn register_metrics() {
18    //     describe_gauge!(
19    //         SOMETHING_TO_MEASURE,
20    //         Unit::Count,
21    //         "A metric that is useful to measure at the resolution of a full node"
22    //     );
23}
24
25// pub const SOMETHING_TO_MEASURE: &str = "penumbra_auction_something_to_measure";