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>
This commit is contained in:
Edward Lemur
2018-10-30 19:00:22 +00:00
committed by Commit Bot
parent e7a7fc42b6
commit 5a9ff43554
4 changed files with 51 additions and 4 deletions

View File

@@ -28,12 +28,16 @@ First, some words about what data we are **NOT** collecting:
- We won't record any information that identifies you personally.
- We won't record the command line flag values.
- We won't record information about the current directory or environment flags.
- We won't record arbitrary strings. We only collect a string if it is in the
list available at
https://chromium.googlesource.com/infra/infra/+/master/go/src/infra/appengine/depot_tools_metrics/metrics/metrics_schema.json#45
The metrics we're collecting are:
- A timestamp, with a week resolution.
- The age of your depot\_tools checkout, with a week resolution.
- Your version of Python (in the format major.minor.micro).
- Your version of Git (in the format major.minor.micro).
- The OS of your machine (i.e. win, linux or mac).
- The arch of your machine (e.g. x64, arm, etc).
- The command that you ran (e.g. `gclient sync`).
@@ -45,8 +49,29 @@ The metrics we're collecting are:
fetch using depot\_tools' fetch command (e.g. Chromium, WebRTC, V8, etc)
- The age of your project checkout, with a week resolution.
- What features are you using in your DEPS and .gclient files. For example:
- Are you setting `use\_relative\_paths=True`?
- Are you setting `use_relative_paths=True`?
- Are you using `recursedeps`?
- Information about the http requests that depot_tools makes:
- What host are we making the request to?
Only collected for well known hosts like chromium-review.googlesource.com.
- What path did we access on the server?
We map the path to an enum to make sure we're not collecting PII.
i.e. we report 'changes/' instead of 'changes/12345'
- What arguments were used on the request?
We collect only known argument names, but not their values.
- What known headers were present or absent?
- How long did the execution take?
- What was the response code?
- What HTTP method was used? (i.e. GET, PUT, POST, etc.)
- Information about the commands that depot_tools runs:
- What command was executed? (i.e. git or cipd)
- How long did the command execute for?
- What argument names (but not values) were passed to the program.
(e.g. --checkout but not the branch name).
- What was the exit code?
The list of all known strings we collect can be found at
https://chromium.googlesource.com/infra/infra/+/master/go/src/infra/appengine/depot_tools_metrics/metrics/metrics_schema.json#45
## Why am I seeing this message *again*?