You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected the error message to be accurate. It currently implies that you can disable telemetry by setting GOTELEMETRY=off.
What did you expect to see?
This error message is incorrect. There is no GOTELEMETRY environment variable. The only way to disable telemetry is to explicitly install golang.org/x/telemetry/cmd/gotelemetry and run gotelemetry off, or equivalently create a file under ${os.UserConfigDir()}/go/telemetry/mode that says "off".
That comment is a relic of earlier design. However, we've discussed revisiting support for GOTELEMETRY=off if it would be useful in certain environments. It would be OK to support GOTELEMETRY=off -- we just won't support GOTELEMETRY=on, since we want users to explicitly opt in and see the information printed by golang.org/x/telemetry/cmd/gotelemetry (or by the IDE dialog).
Go version
n/a
Output of
go env
in your module/workspace:What did you do?
I read the source code of x/telemetry.
https://github.com/golang/telemetry/blob/0391c11e4dcd12fa196c5be1a861988de5b6395c/internal/counter/file.go#L114-L115
What did you see happen?
I expected the error message to be accurate. It currently implies that you can disable telemetry by setting
GOTELEMETRY=off
.What did you expect to see?
This error message is incorrect. There is no
GOTELEMETRY
environment variable. The only way to disable telemetry is to explicitly installgolang.org/x/telemetry/cmd/gotelemetry
and rungotelemetry off
, or equivalently create a file under${os.UserConfigDir()}/go/telemetry/mode
that says "off".https://github.com/golang/telemetry/blob/0391c11e4dcd12fa196c5be1a861988de5b6395c/internal/telemetry/mode.go#L85-L91
The text was updated successfully, but these errors were encountered: