commit | 5e7a33625e65d21057b6d6bac266636095930897 | [log] [tgz] |
---|---|---|
author | Robert Findley <rfindley@google.com> | Wed Mar 20 14:53:08 2024 -0400 |
committer | Robert Findley <rfindley@google.com> | Fri Apr 05 14:16:42 2024 +0000 |
tree | b039ae57d84f397b1e8e7611ae8814938b123a88 | |
parent | b93185a3e4c320e9d06f2a46eb5a0521f00478d0 [diff] |
internal/telemetry: encapsulate the telemetry directory In several places throughout tests, we set all of telemetry.{LocalDir, UploadDir, Mode} according to the standard schema ("local/", "upload/", and "mode"). In the interest of reducing or eliminating global state to improve testability, introduce a telemetry.Dir type which encapsulates the telemetry directory layout. The default layout is accessed through telemetry.Default. This makes it easier for future components to close over or pass around a single piece of state (the Dir). In subsequent CLs, this will be used to make uploading more testable. For golang/go#66003 Change-Id: I31db8df20f133d834219ff17c2fe2d4f9e446b5d Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/575059 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Peter Weinberger <pjw@google.com>
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.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/telemetry:” in the subject line, so it is easy to find.
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.
./npm install
./npm run all