Skip to content

Commit

Permalink
Add metrics for batch mismatch and skipped request
Browse files Browse the repository at this point in the history
  • Loading branch information
danielle-tfh committed Jan 15, 2025
1 parent 0549736 commit f57966c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions iris-mpc-gpu/src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,7 @@ impl ServerActor {
"Batch mismatch with node {}. Queues seem to be out of sync.",
i
);
metrics::counter!("batch.mismatch").increment(1);
return Err(eyre!(
"Batch mismatch with node {}. Queues seem to be out of sync.",
i
Expand Down
5 changes: 5 additions & 0 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ async fn receive_batch(
// Some party (maybe us) already meant to delete this request, so we
// skip it. Ignore this message when calculating the batch size.
msg_counter -= 1;
metrics::counter!("skip.request.deleted.sqs.request").increment(1);
tracing::warn!(
"Skipping request due to it being from synced deleted ids: {}",
smpc_request.signup_id
);
continue;
}

Expand Down

0 comments on commit f57966c

Please sign in to comment.