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

Function getSystemInfo

pkg/telemetry/utils.go:15–19  ·  view source on GitHub ↗

getSystemInfo collects system information for events

()

Source from the content-addressed store, hash-verified

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

Callers 1

createEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected