@@ -107,8 +107,10 @@ type Reporter interface {
107
107
// RunSnapshotter runs reporting in a loop. It should be called in a
108
108
// goroutine to avoid blocking the caller.
109
109
RunSnapshotter ()
110
- // ReportDisabledIfNeeded reports disabled telemetry if there was at least one report sent
111
- // before the telemetry was disabled, and we haven't sent a report since the telemetry was disabled.
110
+ // ReportDisabledIfNeeded reports telemetry in the following scenarios:
111
+ // 1. The telemetry was enabled at some point, and we haven't reported the disabled telemetry yet.
112
+ // 2. The telemetry was enabled at some point, we reported the disabled telemetry, the telemetry
113
+ // was enabled again, then disabled again, and we haven't reported it yet.
112
114
ReportDisabledIfNeeded ()error
113
115
}
114
116
@@ -365,7 +367,7 @@ func (r *remoteReporter) ReportDisabledIfNeeded() error {
365
367
// There are 2 scenarios in which we want to report the disabled telemetry:
366
368
// 1. The telemetry was enabled at some point, and we haven't reported the disabled telemetry yet.
367
369
// 2. The telemetry was enabled at some point, we reported the disabled telemetry, the telemetry
368
- // was enabled again,and then disabled again.
370
+ // was enabled again, then disabled again, and we haven't reported it yet .
369
371
//
370
372
// - In both cases, the TelemetryEnabled item will be present.
371
373
// - In case 1. the TelemetryDisabled item will not be present.