From 15d7849feef54d3f7c037416b4c6cf10bbb527c7 Mon Sep 17 00:00:00 2001 From: Rob Findley Date: Mon, 30 Sep 2024 21:07:56 +0000 Subject: [PATCH] _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 LUCI-TryBot-Result: Go LUCI --- _content/doc/telemetry.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_content/doc/telemetry.md b/_content/doc/telemetry.md index 4fcfcf1304..d2e4ef9f86 100644 --- a/_content/doc/telemetry.md +++ b/_content/doc/telemetry.md @@ -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: