Skip to content

Commit

Permalink
_content/doc: add information about telemetry env vars
Browse files Browse the repository at this point in the history
Add documentation to doc/telemetry.md about the GOTELEMETRY and
GOTELEMETRYDIR environment variables.

Fixes golang/go#68928

Change-Id: I801be3943df515bef3b096ca2e21f43026d9aa02
Reviewed-on: https://go-review.googlesource.com/c/website/+/616916
Reviewed-by: Michael Matloob <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
findleyr committed Oct 1, 2024
1 parent e2efadb commit 15d7849
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _content/doc/telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ With Go 1.23 or later, the following commands interact with the telemetry mode:
- `go telemetry off`: set the mode to `off`.
- `go telemetry local`: set the mode to `local`.

Information about telemetry configuration is also available via read-only Go
environment variables:

- `go env GOTELEMETRY` reports the telemetry mode.
- `go env GOTELEMETRYDIR` reports the directory holding telemetry configuration
and data.

The [`gotelemetry`](/pkg/golang.org/x/telemetry/cmd/gotelemetry) command can
also be used to configure the telemetry mode, as well as to inspect local
telemetry data. Use this command to install it:
Expand Down

0 comments on commit 15d7849

Please sign in to comment.