Skip to content

Commit

Permalink
Use opt-out telemetry (openvinotoolkit#2186)
Browse files Browse the repository at this point in the history
### Changes
Updated the telemetry lib to use the opt-out approach.

### Tests
Manual testing for the `opt_in_out` entrypoint
  • Loading branch information
vshampor committed Oct 12, 2023
1 parent ff28bce commit 11c777d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,3 +406,12 @@ Refer to the [CONTRIBUTING.md](./CONTRIBUTING.md) file for guidelines on contrib
- [Notebooks](https://github.com/openvinotoolkit/openvino_notebooks#-model-training)
- [HuggingFace Optimum Intel](https://huggingface.co/docs/optimum/intel/optimization_ov)
- [OpenVINO Model Optimization Guide](https://docs.openvino.ai/latest/openvino_docs_model_optimization_guide.html)

## Telemetry

NNCF as part of the OpenVINO™ toolkit collects anonymous usage data for the purpose of improving OpenVINO™ tools.
You can opt-out at any time by running the following command in the Python environment where you have NNCF installed:

`opt_in_out --opt_out`

More information is available at https://docs.openvino.ai/latest/openvino_docs_telemetry_information.html.
8 changes: 7 additions & 1 deletion nncf/telemetry/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ class NNCFTelemetry(ITelemetry):

def __init__(self):
try:
self._impl = Telemetry(app_name="nncf", app_version=__version__, tid=self.MEASUREMENT_ID, backend="ga4")
self._impl = Telemetry(
app_name="nncf",
app_version=__version__,
tid=self.MEASUREMENT_ID,
backend="ga4",
enable_opt_in_dialog=False,
)
# pylint:disable=broad-except
except Exception as e:
nncf_logger.debug(f"Failed to instantiate telemetry object: exception {e}")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def find_version(*file_paths):
"networkx>=2.6, <=2.8.2", # see ticket 94048 or https://github.com/networkx/networkx/issues/5962
"ninja>=1.10.0.post2, <1.11",
"numpy>=1.19.1, <1.25",
"openvino-telemetry>=2023.1.1",
"openvino-telemetry>=2023.2.0",
"packaging>=20.0",
"pandas>=1.1.5,<2.1",
"psutil",
Expand Down

0 comments on commit 11c777d

Please sign in to comment.