Switch telemetry to opt-out approach. (#20290)

* Switch telemetry to opt-out approach.

* Minor correction.

* Small correction.
This commit is contained in:
Anastasiia Pnevskaia 2023-10-10 11:14:45 +02:00 committed by GitHub
parent 4a3ce48f7a
commit b630bffa14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 39 deletions

View File

@ -129,6 +129,14 @@ OpenVINO™ Toolkit also contains several plugins which simplify loading models
OpenVINO™ Toolkit is licensed under [Apache License Version 2.0](LICENSE).
By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
## Telemetry
OpenVINO™ collects software performance and usage data for the purpose of improving OpenVINO™ tools. This data is collected directly by OpenVINO™ or through the use of Google Analytics 4.
You can opt-out at any time by running the command:
opt_in_out --opt_out
More Information is available at https://docs.openvino.ai/latest/openvino_docs_telemetry_information.html.
## Documentation
### User documentation

View File

@ -3,13 +3,11 @@
@sphinxdirective
.. meta::
:description: Learn about OpenVINO™ telemetry, that with your explicit consent
collects only usage data to simplify debugging and further development.
:description: Learn about OpenVINO™ telemetry, that collects anonymous usage data for the purpose of improving OpenVINO™ tools.
To facilitate debugging and further development, OpenVINO™ asks its users for
a permission to collect telemetry data. It will not be collected
without an explicit consent on your part and will cover only OpenVINO™ usage information.
To facilitate debugging and further development, OpenVINO™ collects anonymous telemetry data. Anonymous telemetry data is collected by default,
but you can stop data collection anytime by running the command ``opt_in_out --opt_out``.
It does not extend to any other Intel software, hardware, website usage, or other products.
Google Analytics is used for telemetry purposes. Refer to
@ -18,34 +16,6 @@ Google Analytics is used for telemetry purposes. Refer to
Enable or disable Telemetry reporting
###########################################################
First-run consent
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
On the first run of an application that collects telemetry data, you will be prompted
to opt in or out of telemetry collection with the following telemetry message:
.. code-block:: console
Intel would like your permission to collect software performance and usage data
for the purpose of improving Intel products and services. This data will be collected
directly by Intel or through the use of Google Analytics. This data will be stored
in countries where Intel or Google operate.
You can opt-out at any time in the future by running ``opt_in_out --opt_in``.
More Information is available at docs.openvino.ai.
Please type ``Y`` to give your consent or ``N`` to decline.
Choose your preference by typing ``Y`` to enable or ``N`` to disable telemetry. Your choice will
be confirmed by a corresponding disclaimer. If you do not reply to the telemetry message,
your telemetry data will not be collected.
For the Neural Network Compression Framework (NNCF), which is not a command line application,
the telemetry message will not display. Telemetry data will only be collected from NNCF
if you have explicitly provided consent in another OpenVINO tool.
Changing consent decision
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@ -82,8 +52,8 @@ Telemetry Data Collection Details
.. tab-item:: Telemetry Data Retention
:sync: telemetry-data-retention
Telemetry data is retained in Google Analytics for a maximum of 26 months.
Any raw data that has reached the 26-month threshold is deleted from Google Analytics on a monthly basis.
Telemetry data is retained in Google Analytics for a maximum of 14 months.
Any raw data that has reached the 14-month threshold is deleted from Google Analytics on a monthly basis.
@endsphinxdirective

View File

@ -1,3 +1,3 @@
numpy>=1.16.6
singledispatchmethod; python_version<'3.8'
openvino-telemetry>=2023.1.0
openvino-telemetry>=2023.2.0

View File

@ -18,4 +18,4 @@ pyenchant>=3.0.0
test-generator==0.1.1
py>=1.9.0
urllib3>=1.26.4
openvino-telemetry>=2023.1.0
openvino-telemetry>=2023.2.0

View File

@ -22,7 +22,11 @@ except ImportError:
def init_mo_telemetry(app_name='Model Optimizer'):
return tm.Telemetry(tid=get_tid(), app_name=app_name, app_version=get_rt_version(), backend='ga4')
return tm.Telemetry(tid=get_tid(),
app_name=app_name,
app_version=get_rt_version(),
backend='ga4',
enable_opt_in_dialog=False)
def send_framework_info(framework: str):

View File

@ -17,7 +17,11 @@ except ImportError:
def init_mo_telemetry(app_name='Model Conversion API'):
return tm.Telemetry(tid=get_tid(), app_name=app_name, app_version=get_rt_version(), backend='ga4')
return tm.Telemetry(tid=get_tid(),
app_name=app_name,
app_version=get_rt_version(),
backend='ga4',
enable_opt_in_dialog=False)
def send_framework_info(framework: str):
"""