MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / sendTelemetryWrapper

Function sendTelemetryWrapper

cmd/server/main-server.go:217–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215}
216
217func sendTelemetryWrapper() {
218 defer func() {
219 panichandler.PanicHandler("sendTelemetryWrapper", recover())
220 }()
221 ctx, cancelFn := context.WithTimeout(context.Background(), 15*time.Second)
222 defer cancelFn()
223 beforeSendActivityUpdate(ctx)
224 clientId := wstore.GetClientId()
225 err := wcloud.SendAllTelemetry(clientId)
226 if err != nil {
227 log.Printf("[error] sending telemetry: %v\n", err)
228 }
229}
230
231func updateTelemetryCounts(lastCounts telemetrydata.TEventProps) telemetrydata.TEventProps {
232 ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)

Callers 2

doShutdownFunction · 0.85
telemetryLoopFunction · 0.85

Calls 4

PanicHandlerFunction · 0.92
GetClientIdFunction · 0.92
SendAllTelemetryFunction · 0.92
beforeSendActivityUpdateFunction · 0.85

Tested by

no test coverage detected