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 4 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
15 changes: 15 additions & 0 deletions optimum/intel/utils/import_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@
if _openvino_available:
try:
from openvino.runtime import get_version
import openvino_telemetry as tm

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)

# temporal code to check that "CI" variable is set in CI pipelines,
# needs to be removed before merge
import os
assert "CI" in os.environ and os.environ["CI"].lower() == "true"

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure this is something we want to add in optimum

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a request to add Telemetry from Gorbachev Yury so we could track the number of users in optimum-intel.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@echarlaix, any concerns about this request? We track OpenVINO usage on a regular basis and we would like to know how much inflow comes from HF ecosystem.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@echarlaix, can you please take a look again? As @popovaan mentioned, openvino-telemetry is installed always when openvino is installed in the environment. We are just enabling it here to track optimum usage. CI jobs are excluded.


version = get_version()
# avoid invalid format
Expand Down
Loading