If you run your program with go run
, Go collects telemetry data about the go run process.
Go does not collect telemetry data when you run a compiled application separately from Go tooling. If you go build
to compile your hello
application and then run ./hello
, Go collects telemetry from the go build
invocation but not from ./hello
.
The Go Telemetry page notes that the scope is limited to Go’s tooling:
Go telemetry is a way for Go toolchain programs to collect data about their performance and usage. Here “Go toolchain” means developer tools maintained by the Go team, including the
go
command and supplemental tools such as the Go language servergopls
or Go security toolgovulncheck
. Go telemetry is only intended for use in programs maintained by the Go team and their selected dependencies like Delve.