-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Enable telemetry without env var #13254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -84,7 +84,7 @@ func Main() exitCode { | |||
| telemetryService = &telemetry.NoOpService{} | ||||
| default: | ||||
| telemetryState := telemetry.ParseTelemetryState(cfg.Telemetry().Value) | ||||
| telemetryDisabled := os.Getenv("GH_PRIVATE_ENABLE_TELEMETRY") == "" || mightBeGHESUser(cfg) | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, I have a minor code review nit: What the hell is this? There isn't even an opt-out. Please add a note to the changelog saying "we scrape your data unconditionally now" so users can make an informed decision. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you could understand the code you are reading, you would realise that the telemetryState variable is fed from ParseTelemetryState() cli/internal/telemetry/telemetry.go Line 106 in ea7a245
GH_TELEMETRY, the DO_NOT_TRACK environnement variable or event with the gh config set telemetry disabled CLI config.
These configs will make the functions return There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's not scraping. |
||||
| telemetryDisabled := mightBeGHESUser(cfg) | ||||
|
|
||||
| switch telemetryState { | ||||
| case telemetry.Disabled: | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.