Skip to content

Commit

Permalink
Use american english
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Jan 20, 2024
1 parent 6e0b051 commit 28f7ca8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions node/metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ pub use names::*;
// Re-export the snarkVM metrics.
pub use snarkvm::metrics::*;

/// Initialises the metrics and returns a handle to the task running the metrics exporter.
/// Initializes the metrics and returns a handle to the task running the metrics exporter.
pub fn initialize_metrics() {
use metrics_exporter_prometheus::PrometheusBuilder;

// Build the recorder and set as global.
PrometheusBuilder::new().install().expect("can't build the prometheus exporter");
// Build the Prometheus exporter.
metrics_exporter_prometheus::PrometheusBuilder::new().install().expect("can't build the prometheus exporter");

// Register the snarkVM metrics.
snarkvm::metrics::register_metrics();
Expand Down

0 comments on commit 28f7ca8

Please sign in to comment.