Skip to content

Commit

Permalink
Minor corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed Nov 19, 2024
1 parent eeb4de6 commit e07879c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/backend/backend_ga4.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@
import multiprocessing


def _send_func(request_data):
try:
request.urlopen(request_data) # nosec
except Exception as err:
pass # nosec


class GA4Backend(TelemetryBackend):
id = 'ga4'
cid_filename = 'openvino_ga_cid'
old_cid_filename = 'openvino_ga_uid'
timeout = 1.0
timeout = 3.0

def __init__(self, tid: str = None, app_name: str = None, app_version: str = None):
super(GA4Backend, self).__init__(tid, app_name, app_version)
Expand All @@ -38,11 +45,6 @@ def send(self, message: dict):
if message is None:
return
try:
def _send_func(request_data):
try:
request.urlopen(request_data) # nosec
except Exception as err:
pass # nosec
data = json.dumps(message).encode()

if self.backend_url.lower().startswith('http'):
Expand Down

0 comments on commit e07879c

Please sign in to comment.