MCPcopy Index your code
hub / github.com/jetify-com/devbox / Stop

Function Stop

internal/telemetry/telemetry.go:98–109  ·  view source on GitHub ↗

Stop stops gathering telemetry and flushes buffered events to disk.

()

Source from the content-addressed store, hash-verified

96
97// Stop stops gathering telemetry and flushes buffered events to disk.
98func Stop() {
99 if !started || !needsFlush.Load() {
100 return
101 }
102
103 // Report errors in a separate process so we don't block exiting.
104 exe, err := os.Executable()
105 if err == nil {
106 _ = exec.Command(exe, "upload-telemetry").Start()
107 }
108 started = false
109}
110
111func Event(e EventName, meta Metadata) {
112 if !started {

Callers 1

postRunMethod · 0.92

Calls 1

CommandMethod · 0.80

Tested by

no test coverage detected