getSystemInfo collects system information for events
()
| 13 | |
| 14 | // getSystemInfo collects system information for events |
| 15 | func getSystemInfo() (osName, osVersion, osLanguage string) { |
| 16 | osInfo := runtime.GOOS |
| 17 | osLang := cmp.Or(os.Getenv("LANG"), "en-US") |
| 18 | return osInfo, "", osLang |
| 19 | } |
| 20 | |
| 21 | func GetTelemetryEnabled() bool { |
| 22 | // Disable telemetry when running in tests to prevent HTTP calls |