Skip to content

Commit

Permalink
fix(builder): convert gas metrics to counters
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-miao committed Oct 10, 2023
1 parent 55b5f9c commit b41871e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/builder/src/bundle_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,8 @@ impl BuilderMetrics {
}

fn set_bundle_gas_stats(gas_limit: U256, gas_used: U256) {
let gas_limit = gas_limit.as_u128() as f64;
let gas_used = gas_used.as_u128() as f64;
metrics::gauge!("builder_bundle_gas_limit", gas_limit);
metrics::gauge!("builder_bundle_gas_used", gas_used);
metrics::gauge!("builder_bundle_gas_utilization", gas_limit / gas_used);
metrics::counter!("builder_bundle_gas_limit", gas_limit.as_u64());
metrics::counter!("builder_bundle_gas_used", gas_used.as_u64());
}

fn set_current_fees(fees: &GasFees) {
Expand Down

0 comments on commit b41871e

Please sign in to comment.