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

Commit 884e954

Browse files
[client] fix metrics increment in bundle sending process (#943)
1 parent 729cb96 commit 884e954

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
@@ -1983,6 +1983,7 @@ def send_stix2_bundle(self, bundle: str, **kwargs) -> list:
19831983
self.api.send_bundle_to_api(
19841984
connector_id=self.connector_id, bundle=bundle, work_id=work_id
19851985
)
1986+
self.metric.inc("bundle_send")
19861987
else:
19871988
raise ValueError(
19881989
f"{self.queue_protocol}: this queue protocol is not supported"

0 commit comments

Comments
 (0)