internal/upload: uploading uses SampleRate

Upload configurations contain a sampling rate. This CL filters out
uploadable reports whose random value X is larger than SampleRate
so they are not uploaded. (The local reports are kept as before.)

Change-Id: I60f98c8abd7923f87f70d4e514ade449265f0e15
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/558955
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Peter Weinberger <pjw@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
3 files changed
tree: d6cf7f6253ca116cdc5ee3a158cd02cc2583c685
  1. cmd/
  2. config/
  3. counter/
  4. godev/
  5. internal/
  6. upload/
  7. .dockerignore
  8. .eslintrc.json
  9. .gitignore
  10. .prettierrc.json
  11. .stylelintrc.json
  12. CONTRIBUTING.md
  13. doc.go
  14. go.mod
  15. go.sum
  16. LICENSE
  17. mode.go
  18. npm
  19. npx
  20. package-lock.json
  21. package.json
  22. PATENTS
  23. README.md
  24. tsconfig.json
  25. types.go
README.md

Go Telemetry

This repository holds the Go Telemetry server code and libraries.

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

Report Issues / Send Patches

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.