-
Notifications
You must be signed in to change notification settings - Fork 156
refactor: add an option to disable telemetry in BootstrapConfig #681
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
Conversation
loicbourgois
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
internal/core/bootstrap.go
Outdated
| if (!matomo.ForceTelemetry && !config.BuildInfo.IsRelease()) || | ||
| (meta.command == nil || meta.command.DisableTelemetry) || | ||
| !matomo.IsTelemetryEnabled() { | ||
| // - no valid command was executed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no command was executed*
internal/core/bootstrap.go
Outdated
| // - no valid command was executed | ||
| // - telemetry is disabled on the ran command | ||
| // - telemetry is explicitly disable in bootstrap config | ||
| if !matomo.IsTelemetryEnabled() || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this check should happen at the end because it will read the config file
internal/core/bootstrap.go
Outdated
| // If not a client will be automatically created by the CLI using Config, Env and flags see createClient(). | ||
| Client *scw.Client | ||
|
|
||
| // DisableTelemetry, if set to true this will disable telemetry report no matter what the config sent_telemetry is set to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
send_telemetry (typo)
kindermoumoute
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.