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)
| 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 |
| 74 | func 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 |