Skip to content

Commit

Permalink
fix deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Dec 27, 2023
1 parent 0436a11 commit 0076dbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zebrad/src/components/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ impl MetricsEndpoint {
// Expose binary metadata to metrics, using a single time series with
// value 1:
// https://www.robustperception.io/exposing-the-software-version-to-prometheus
metrics::increment_counter!(
metrics::counter!(
format!("{}.build.info", env!("CARGO_PKG_NAME")),
"version" => env!("CARGO_PKG_VERSION")
);
)
.increment(1);
}
Err(e) => panic!(
"Opening metrics endpoint listener {addr:?} failed: {e:?}. \
Expand Down

0 comments on commit 0076dbe

Please sign in to comment.