Description
In #63143 we removed the original 'off' option and changed gotelemetry off
means "turning off upload". The motivation was to simplify the command interface. Unfortunately, this leads to confusion - users expect to turn off statistics logging completely by doing so.
Moreover, we learned that there are certain cases where some users want to avoid extra disk writes if they are not critical for gopls' core functionalities.
We propose to restore the original 'local' and 'off' distinction.
gotelemetry on
- collect and submit data to telemetry.go.dev.gotelemetry local
- collect data.gotelemetry off
- do not collect data.
The default remains 'local'.
The submission of telemetry data is still opt-in. The collection of telemetry data is opt-out like go toolchain's metadata. Data collected before gotelemetry on
is not included in submission.
Related - gotelemetry clean
shouldn't delete the mode file, but can delete all other files.