Skip to content

Commit b9fc3ba

Browse files
authored
feat: improve sender allocation logging (#703)
* feat(agent): log unaggregated fees last id in warning * refactor: rewrite unclear comment on receipt ID assumption
1 parent 6c82693 commit b9fc3ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/tap-agent/src/agent/sender_allocation.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,9 @@ where
379379
..
380380
} = notification;
381381
if id <= unaggregated_fees.last_id {
382-
// our world assumption is wrong
382+
// Unexpected: received a receipt with an ID not greater than the last processed one
383383
tracing::warn!(
384+
unaggregated_fees_last_id = %unaggregated_fees.last_id,
384385
last_id = %id,
385386
"Received a receipt notification that was already calculated."
386387
);

0 commit comments

Comments
 (0)