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
Show file tree
Hide file tree
Changes from 5 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
Expand Up @@ -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) \
Expand Down
16 changes: 16 additions & 0 deletions optimum/intel/utils/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading