()
| 215 | } |
| 216 | |
| 217 | func 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 | |
| 231 | func updateTelemetryCounts(lastCounts telemetrydata.TEventProps) telemetrydata.TEventProps { |
| 232 | ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) |
no test coverage detected