Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 297a41b

Browse files
[bclient] fix inconsistent metrics increment in bundle sending process (#943)
1 parent a784e89 commit 297a41b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,6 +1981,7 @@ def send_stix2_bundle(self, bundle: str, **kwargs) -> list:
19811981
self.api.send_bundle_to_api(
19821982
connector_id=self.connector_id, bundle=bundle, work_id=work_id
19831983
)
1984+
self.metric.inc("bundle_send")
19841985
else:
19851986
raise ValueError(
19861987
f"{self.queue_protocol}: this queue protocol is not supported"

0 commit comments

Comments
 (0)