kedro-plugins
kedro-plugins copied to clipboard
kedro-telemetry: make telemetry warning less intrusive
Description
Currently, kedro-telemetry displays the following warning message every time a Kedro command is executed:
INFO Kedro is sending anonymous usage data with the sole purpose of improving the product. No personal data or IP plugin.py:243
addresses are stored on our side. To opt out, set the `KEDRO_DISABLE_TELEMETRY` or `DO_NOT_TRACK` environment
variables, or create a `.telemetry` file in the current working directory with the contents `consent: false`. To
hide this message, explicitly grant or deny consent. Read more at
https://docs.kedro.org/en/stable/configuration/telemetry.html
While this message is informative, it is quite large and may feel intrusive or annoying for some users. We have already documented the official way to suppress this message by explicitly granting or denying consent (see PR #5061).
However, it might be worth conducting additional legal research to confirm whether it is necessary to show this message on every command. It’s possible that showing the full message only on kedro new would be sufficient from a compliance standpoint.
If a reduction is permissible, I propose keeping the full notification for kedro new, while displaying a much smaller, less intrusive version for other commands like kedro run, e.g.:
INFO Kedro is sending anonymous telemetry data. Read more at
https://docs.kedro.org/en/stable/configuration/telemetry.html
Maybe in that case we could do the following:
- Show the current large warning only on the first command execution (per user or per project).
- For all subsequent executions, display only a smaller message, for example:
INFO Kedro is sending anonymous telemetry data. Read more at https://docs.kedro.org/en/stable/configuration/telemetry.html - Start legal discussions. If they are concluded successfully, remove the smaller warning and keep only the initial large one. If the discussions are not successful, continue showing the smaller warnings.