Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
squadgazzz committed Jan 9, 2025
1 parent 33ce5a2 commit 67572be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl Detector {
}
Ok(TokenQuality::Bad { reason }) => {
tracing::debug!(reason, token=?sell_token.0, "cache token as unsupported");
metrics::get().bad_tokens_detected.with_label_values(&[&solver_name,"simulation"]).inc();
metrics::get().bad_tokens_detected.with_label_values(&[&solver_name, "simulation"]).inc();
inner
.cache
.update_quality(sell_token, false, now);
Expand Down
2 changes: 1 addition & 1 deletion crates/driver/src/infra/observe/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Metrics {
/// The results of the mempool submission.
#[metric(labels("mempool", "result"))]
pub mempool_submission: prometheus::IntCounterVec,
/// Bad token detection metrics by solver and detection strategy.
/// How many tokens detected by specific solver and strategy.
#[metric(labels("solver", "strategy"))]
pub bad_tokens_detected: prometheus::IntCounterVec,
}
Expand Down

0 comments on commit 67572be

Please sign in to comment.