MCPcopy Index your code
hub / github.com/coder/coder / ShouldReportTelemetryDisabled

Function ShouldReportTelemetryDisabled

coderd/telemetry/telemetry.go:196–198  ·  view source on GitHub ↗

See the corresponding test in telemetry_test.go for a truth table.

(recordedTelemetryEnabled *bool, telemetryEnabled bool)

Source from the content-addressed store, hash-verified

194
195// See the corresponding test in telemetry_test.go for a truth table.
196func 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

Callers 2

RecordTelemetryStatusFunction · 0.85

Calls

no outgoing calls

Tested by 1