From 9ebda3fc10907c0fc809f4f8544093e8a7eb4561 Mon Sep 17 00:00:00 2001 From: badrogger Date: Thu, 18 Apr 2024 11:24:16 +0000 Subject: [PATCH] Add TM pool size --- transaction_manager/processor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/transaction_manager/processor.py b/transaction_manager/processor.py index 04467d0..7f2186a 100644 --- a/transaction_manager/processor.py +++ b/transaction_manager/processor.py @@ -220,6 +220,7 @@ def process_next(self) -> None: def run(self) -> None: while True: try: + stcd.gauge('tm.pool.size', self.pool.size) self.process_next() except Exception: logger.exception('Failed to process tx')