From 297a41b35d415f825e14d8491b9a9dbf693cbede Mon Sep 17 00:00:00 2001 From: marie flores Date: Tue, 26 Aug 2025 15:06:06 +0200 Subject: [PATCH] [bclient] fix inconsistent metrics increment in bundle sending process (#943) --- pycti/connector/opencti_connector_helper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pycti/connector/opencti_connector_helper.py b/pycti/connector/opencti_connector_helper.py index db7c0480e..457bcad97 100644 --- a/pycti/connector/opencti_connector_helper.py +++ b/pycti/connector/opencti_connector_helper.py @@ -1981,6 +1981,7 @@ def send_stix2_bundle(self, bundle: str, **kwargs) -> list: self.api.send_bundle_to_api( connector_id=self.connector_id, bundle=bundle, work_id=work_id ) + self.metric.inc("bundle_send") else: raise ValueError( f"{self.queue_protocol}: this queue protocol is not supported"