Skip to content

Commit

Permalink
fix: use gauge for tycho_session_iterator_messages_all
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdeafbeef committed Jun 23, 2024
1 parent 27e893c commit 028ae67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions collator/src/internal_queue/state/session/session_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ impl SessionState for SessionStateStdImpl {

let labels = [("workchain", for_shard_id.workchain().to_string())];

metrics::histogram!("tycho_session_iterator_messages_all", &labels)
.record(total_messages as f64);
metrics::gauge!("tycho_session_iterator_messages_all", &labels).set(total_messages as f64);

Box::new(SessionStateIterator::new(
flat_shards,
Expand Down

0 comments on commit 028ae67

Please sign in to comment.