[mirror] Go Telemetry services and libraries
Find a file
aarzilli b6b0c46d1c cmd/stacks: change shouldReopen so that it works with Delve
Also add some verbose logging so that similar problems are easier to
debug in the future.

Change-Id: I66740240d57baf5b5d461462f03048eea2b892d5
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/743000
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
2026-03-16 15:38:53 -07:00
cmd cmd/stacks: change shouldReopen so that it works with Delve 2026-03-16 15:38:53 -07:00
config config: regenerate upload config 2026-03-12 09:14:27 -07:00
counter counter/countertest: fix %q verb use with wrong type 2025-11-28 14:06:24 -08:00
crashmonitor internal/counter: record program counters in stack counter names 2025-04-17 05:49:45 -07:00
godev go.mod: update golang.org/x dependencies 2026-03-11 07:17:43 -07:00
internal internal/chartconfig: add go/vcs counter 2026-03-11 12:37:53 -07:00
.dockerignore .dockerignore: create docker ignore file to speed up builds 2023-09-01 16:28:52 +00:00
.eslintrc.json godev/content: use esbuild devtool for styles and scripts 2023-09-11 17:35:21 +00:00
.gitattributes telemetry: add .gitattributes for windows line endings 2024-02-15 16:16:40 +00:00
.gitignore godev: move static css and typescript tooling config 2023-08-31 11:52:20 +00:00
.prettierrc.json godev: move static css and typescript tooling config 2023-08-31 11:52:20 +00:00
.stylelintrc.json godev/content: use esbuild devtool for styles and scripts 2023-09-11 17:35:21 +00:00
codereview.cfg codereview.cfg: add 2025-10-14 08:37:21 -07:00
CONTRIBUTING.md godev/content: use esbuild devtool for styles and scripts 2023-09-11 17:35:21 +00:00
dir.go telemetry: add Dir function for use by go telemetry 2024-05-10 22:36:29 +00:00
doc.go godev: create godev submodule and content package 2023-05-22 18:57:32 +00:00
go.mod go.mod: update golang.org/x dependencies 2026-03-11 07:17:43 -07:00
go.sum go.mod: update golang.org/x dependencies 2026-03-11 07:17:43 -07:00
LICENSE LICENSE: update per Google Legal 2024-07-16 16:07:15 +00:00
mode.go telemetry: add a test for Start 2024-05-07 14:28:59 +00:00
npm godev: move static css and typescript tooling config 2023-08-31 11:52:20 +00:00
npx godev: move static css and typescript tooling config 2023-08-31 11:52:20 +00:00
package-lock.json godev: move static css and typescript tooling config 2023-08-31 11:52:20 +00:00
package.json godev/content: use esbuild devtool for styles and scripts 2023-09-11 17:35:21 +00:00
PATENTS initial commit 2023-05-04 20:13:37 +00:00
README.md README: mention the git repo 2024-11-05 20:33:24 +00:00
start.go internal/counter: record program counters in stack counter names 2025-04-17 05:49:45 -07:00
start_posix.go telemetry: daemonize the child started by telemetry.Start 2024-02-28 15:54:56 +00:00
start_test.go internal/counter: record program counters in stack counter names 2025-04-17 05:49:45 -07:00
start_windows.go telemetry: daemonize the child started by telemetry.Start 2024-02-28 15:54:56 +00:00
tsconfig.json godev: move static css and typescript tooling config 2023-08-31 11:52:20 +00:00
types_alias.go internal/telemetry: move core types to internal/telemetry 2024-02-14 19:17:52 +00:00

Go Telemetry

This repository holds the Go Telemetry server code and libraries, used for hosting telemetry.go.dev and instrumenting Go toolchain programs with opt-in telemetry.

Warning: this repository is intended for use only in tools maintained by the Go team, including tools in the Go distribution and auxiliary tools like gopls or govulncheck. There are no compatibility guarantees for any of the packages here: public APIs will change in breaking ways as the telemetry integration is refined.

Notable Packages

  • The x/telemetry/counter package provides a library for instrumenting programs with counters and stack reports.
  • The x/telemetry/upload package provides a hook for Go toolchain programs to upload telemetry data, if the user has opted in to telemetry uploading.
  • The x/telemetry/cmd/gotelemetry command is used for managing telemetry data and configuration.
  • The x/telemetry/config package defines the subset of telemetry data that has been approved for uploading by the telemetry proposal process.
  • The x/telemetry/godev directory defines the services running at telemetry.go.dev.

Contributing

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/telemetry.

The main issue tracker for the telemetry repository is located at https://go.dev/issues. Prefix your issue with "x/telemetry:" in the subject line, so it is easy to find.

Linting & Formatting

This repository uses eslint to format TS files, stylelint to format CSS files, and prettier to format TS, CSS, Markdown, and YAML files.

See the style guides:

It is encouraged that all TS and CSS code be run through formatters before submitting a change. However, it is not a strict requirement enforced by CI.

Installing npm Dependencies:

  1. Install docker
  2. Run ./npm install

Run ESLint, Stylelint, & Prettier

./npm run all