Skip to content

Commit

Permalink
Use GA4 telemetry backend in MO and OVC. (openvinotoolkit#18584)
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan authored Jul 18, 2023
1 parent ff5b56e commit e67850a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tools/mo/openvino/tools/mo/convert_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ def _convert(cli_parser: argparse.ArgumentParser, framework, args, python_api_us
show_mo_convert_help()
return None, None
simplified_mo_version = VersionChecker().get_mo_simplified_version()
telemetry = tm.Telemetry(tid=get_tid(), app_name='Model Optimizer', app_version=simplified_mo_version)
telemetry = tm.Telemetry(tid=get_tid(), app_name='Model Optimizer', app_version=simplified_mo_version, backend='ga4')
telemetry.start_session('mo')
telemetry.send_event('mo', 'version', simplified_mo_version)
# Initialize logger with 'ERROR' as default level to be able to form nice messages
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/openvino/tools/mo/utils/check_ie_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


def send_telemetry(mo_version: str, message: str, event_type: str):
t = tm.Telemetry(tid=get_tid(), app_name='Version Checker', app_version=mo_version)
t = tm.Telemetry(tid=get_tid(), app_name='Version Checker', app_version=mo_version, backend='ga4')
# do not trigger new session if we are executing from the check from within the MO because it is actually not model
# conversion run which we want to send
if execution_type != 'mo':
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/openvino/tools/mo/utils/telemetry_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# SPDX-License-Identifier: Apache-2.0

telemetry_params = {
'TID': "UA-17808594-29"
'TID': "G-W5E9RNLD4H"
}
2 changes: 1 addition & 1 deletion tools/mo/openvino/tools/mo/utils/telemetry_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


def init_mo_telemetry():
_ = tm.Telemetry(tid=get_tid(), app_name='Model Conversion API', app_version=get_rt_version())
_ = tm.Telemetry(tid=get_tid(), app_name='Model Conversion API', app_version=get_rt_version(), backend='ga4')


def send_framework_info(framework: str):
Expand Down
2 changes: 1 addition & 1 deletion tools/ovc/openvino/tools/ovc/convert_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def _convert(cli_parser: argparse.ArgumentParser, args, python_api_used):
return None, None
framework = None
simplified_ie_version = VersionChecker().get_ie_simplified_version()
telemetry = tm.Telemetry(tid=get_tid(), app_name='Model Conversion API', app_version=simplified_ie_version)
telemetry = tm.Telemetry(tid=get_tid(), app_name='Model Conversion API', app_version=simplified_ie_version, backend='ga4')
telemetry.start_session('mo')
telemetry.send_event('mo', 'version', simplified_ie_version)
# Initialize logger with 'ERROR' as default level to be able to form nice messages
Expand Down
2 changes: 1 addition & 1 deletion tools/ovc/openvino/tools/ovc/telemetry_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# SPDX-License-Identifier: Apache-2.0

telemetry_params = {
'TID': "UA-17808594-29"
'TID': "G-W5E9RNLD4H"
}
2 changes: 1 addition & 1 deletion tools/ovc/openvino/tools/ovc/telemetry_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


def init_mo_telemetry():
_ = tm.Telemetry(tid=get_tid(), app_name='Model Conversion API', app_version=get_rt_version())
_ = tm.Telemetry(tid=get_tid(), app_name='Model Conversion API', app_version=get_rt_version(), backend='ga4')


def send_framework_info(framework: str):
Expand Down

0 comments on commit e67850a

Please sign in to comment.