git-cl: Report Gerrit RPC requests information.
Bug: 897394
Change-Id: I055e844299e262be81d5ac52ef24571b8fdfd47c
Reviewed-on: https://chromium-review.googlesource.com/c/1292245
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Andy Perelson <ajp@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
diff --git a/metrics_utils.py b/metrics_utils.py
index 7cff588..9209344 100644
--- a/metrics_utils.py
+++ b/metrics_utils.py
@@ -17,7 +17,7 @@
# Current version of metrics recording.
# When we add new metrics, the version number will be increased, we display the
# user what has changed, and ask the user to agree again.
-CURRENT_VERSION = 0
+CURRENT_VERSION = 1
APP_URL = 'https://cit-cli-metrics.appspot.com'
@@ -34,18 +34,28 @@
)
NOTICE_VERSION_CHANGE_HEADER = (
'*****************************************************\n'
- '* WE ARE COLLECTING ADDITIONAL METRICS *'
+ '* WE ARE COLLECTING ADDITIONAL METRICS *\n'
+ '* *\n'
+ '* Please review the changes and opt-in again. *'
)
NOTICE_FOOTER = (
'* For more information, and for how to disable this *\n'
'* message, please see metrics.README.md in your *\n'
- '* depot_tools checkout. *\n'
+ '* depot_tools checkout or visit *\n'
+ '* https://bit.ly/2ufRS4p. *\n'
'*****************************************************\n'
)
CHANGE_NOTICE = {
# No changes for version 0
0: '',
+ 1: ('* We want to collect the Git version. *\n'
+ '* We want to collect information about the HTTP *\n'
+ '* requests that depot_tools makes, and the git and *\n'
+ '* cipd commands it executes. *\n'
+ '* *\n'
+ '* We only collect known strings to make sure we *\n'
+ '* don\'t record PII. *')
}