Skip to content

Commit 15d7849

Browse files
committed
_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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent e2efadb commit 15d7849

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

_content/doc/telemetry.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ With Go 1.23 or later, the following commands interact with the telemetry mode:
130130
- `go telemetry off`: set the mode to `off`.
131131
- `go telemetry local`: set the mode to `local`.
132132

133+
Information about telemetry configuration is also available via read-only Go
134+
environment variables:
135+
136+
- `go env GOTELEMETRY` reports the telemetry mode.
137+
- `go env GOTELEMETRYDIR` reports the directory holding telemetry configuration
138+
and data.
139+
133140
The [`gotelemetry`](/pkg/golang.org/x/telemetry/cmd/gotelemetry) command can
134141
also be used to configure the telemetry mode, as well as to inspect local
135142
telemetry data. Use this command to install it:

0 commit comments

Comments
 (0)