OpenVINO™ Telemetry
OpenVINO™ Telemetry is a Python 3 library (current version 2025.2.0) designed to collect anonymous usage and performance data from OpenVINO™ toolkit components. It sends events, comprising a category, action, and label, to Google Analytics to aid in debugging and further development. The library is actively maintained as part of the broader OpenVINO™ toolkit, with releases typically aligning with OpenVINO™ versions.
Warnings
- gotcha Telemetry data collection is opt-out by default, but critically, it *requires explicit user consent* during the OpenVINO toolkit installation. If this consent is not provided, or if the user has previously opted out via `opt_in_out --opt_out`, no data will be transmitted. This can lead to silently failing data collection if the consent status is not actively managed or verified.
- gotcha When providing detailed information in the `label` parameter of `send_event`, it is highly recommended to combine all related key-value pairs into a single, JSON-like string (e.g., `'{key1:value1, key2:value2}'`). Sending separate events for related data points can lead to duplicated metrics and make it difficult to correlate information effectively in analytics.
- gotcha Anonymous telemetry data collected by OpenVINO™ Telemetry is stored in Google Analytics with a maximum retention period of 14 months. Raw data older than this threshold is periodically deleted.
Install
-
pip install openvino-telemetry
Imports
- telemetry
import openvino_telemetry as telemetry
- send_event
from openvino_telemetry import send_event
Quickstart
import openvino_telemetry as telemetry
import os
# Telemetry is collected by default but requires user consent during OpenVINO installation.
# If the control file doesn't exist or indicates 'no' consent, no data is transmitted.
# For explicit control (e.g., in a test environment):
# os.system("opt_in_out --opt_out") # To disable
# os.system("opt_in_out --opt_in") # To enable
# Send a simple event with a category, action, and label.
# The label can be a simple string or a JSON-like string for structured data.
telemetry.send_event(
category="my_application",
action="start_up",
label="{version:1.0.0, os:" + os.name + "}"
)
# Example of sending an event related to a specific OpenVINO tool, as per documentation guidelines.
# Ensure all related data is in the 'label' as a single stringified dictionary for correlation.
telemetry.send_event(
category="mo",
action="conversion_results",
label="{framework:pytorch, model:yolov8, status:success, duration_sec:120}"
)
print("Telemetry events sent (if consent is granted).")