Skip to content

Commit

Permalink
Fix metrics sending
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Apr 29, 2024
1 parent 70b1bfb commit eb620cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction_manager/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def acquire_tx(self, tx: Tx) -> Generator[Tx, None, None]:
yield tx
finally:
stdc.gauge('tm.attempt', tx.attempts)
stdc.increase(f'tm.transaction.{tx.status.name}')
stdc.incr(f'tm.transaction.{tx.status.name}')
if tx.is_sent():
self.attempt_manager.save()
if not tx.is_completed() and tx.is_last_attempt():
Expand Down

0 comments on commit eb620cf

Please sign in to comment.