See the corresponding test in telemetry_test.go for a truth table.
(recordedTelemetryEnabled *bool, telemetryEnabled bool)
| 194 | |
| 195 | // See the corresponding test in telemetry_test.go for a truth table. |
| 196 | func ShouldReportTelemetryDisabled(recordedTelemetryEnabled *bool, telemetryEnabled bool) bool { |
| 197 | return recordedTelemetryEnabled != nil && *recordedTelemetryEnabled && !telemetryEnabled |
| 198 | } |
| 199 | |
| 200 | // RecordTelemetryStatus records the telemetry status in the database. |
| 201 | // If the status changed from enabled to disabled, returns a snapshot to |
no outgoing calls