_content/doc: add information about telemetry env vars
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 <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/_content/doc/telemetry.md b/_content/doc/telemetry.md
index 4fcfcf1..d2e4ef9 100644
--- a/_content/doc/telemetry.md
+++ b/_content/doc/telemetry.md
@@ -130,6 +130,13 @@
- `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: