MCPcopy Index your code
hub / github.com/docker/docker-agent / SetGlobalTelemetryDebugMode

Function SetGlobalTelemetryDebugMode

pkg/telemetry/global.go:74–78  ·  view source on GitHub ↗

SetGlobalTelemetryDebugMode sets the debug mode for automatic telemetry initialization This should be called by the root package to pass the --debug flag state

(debug bool)

Source from the content-addressed store, hash-verified

72// SetGlobalTelemetryDebugMode sets the debug mode for automatic telemetry initialization
73// This should be called by the root package to pass the --debug flag state
74func SetGlobalTelemetryDebugMode(debug bool) {
75 globalMu.Lock()
76 defer globalMu.Unlock()
77 globalTelemetryDebugMode = debug
78}
79
80// EnsureGlobalTelemetryInitialized ensures telemetry is initialized exactly once
81// This handles all the setup automatically - no explicit initialization needed

Callers 2

NewRootCmdFunction · 0.92

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1