Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telemetry sending #575

Closed
wants to merge 7 commits into from
Closed
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ build_doc_docker_image:
doc: build_doc_docker_image
@test -n "$(BUILD_DIR)" || (echo "BUILD_DIR is empty." ; exit 1)
@test -n "$(VERSION)" || (echo "VERSION is empty." ; exit 1)
docker run -v $(CURRENT_DIR):/doc_folder --workdir=/doc_folder doc_maker \
docker run -v $(CURRENT_DIR):/doc_folder --workdir=/doc_folder --env CI=$(CI) doc_maker \
doc-builder build optimum.intel /optimum-intel/docs/source/ \
--repo_name optimum-intel \
--build_dir $(BUILD_DIR) \
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -201,6 +201,13 @@ Quantization aware training (QAT) is applied in order to simulate the effects of

You can find more examples in the [documentation](https://huggingface.co/docs/optimum/intel/index).

#### 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:

``` bash
opt_in_out --opt_out
```

## Running the examples

16 changes: 16 additions & 0 deletions optimum/intel/utils/import_utils.py
Original file line number Diff line number Diff line change
@@ -73,8 +73,24 @@
_openvino_version = "N/A"
if _openvino_available:
try:
import openvino_telemetry as tm
from openvino.runtime import get_version

tm = tm.Telemetry(
tid="G-W5E9RNLD4H",
app_name="Optimum Intel",
app_version=get_version(),
backend="ga4",
enable_opt_in_dialog=False,
disable_in_ci=True,
)

tm.send_event(
"optimum_intel",
"openvino_imported",
"OpenVino {}, Optimum {}.".format(get_version(), importlib_metadata.version("optimum")),
)

version = get_version()
# avoid invalid format
if "-" in version: