(ctx context.Context)
| 288 | } |
| 289 | |
| 290 | func beforeSendActivityUpdate(ctx context.Context) { |
| 291 | activity := wshrpc.ActivityUpdate{} |
| 292 | activity.NumTabs, _ = wstore.DBGetCount[*waveobj.Tab](ctx) |
| 293 | activity.NumBlocks, _ = wstore.DBGetCount[*waveobj.Block](ctx) |
| 294 | activity.Blocks, _ = wstore.DBGetBlockViewCounts(ctx) |
| 295 | activity.NumWindows, _ = wstore.DBGetCount[*waveobj.Window](ctx) |
| 296 | activity.NumSSHConn = conncontroller.GetNumSSHHasConnected() |
| 297 | activity.NumWSLConn = wslconn.GetNumWSLHasConnected() |
| 298 | activity.NumWSNamed, activity.NumWS, _ = wstore.DBGetWSCounts(ctx) |
| 299 | err := telemetry.UpdateActivity(ctx, activity) |
| 300 | if err != nil { |
| 301 | log.Printf("error updating before activity: %v\n", err) |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | func startupActivityUpdate(firstLaunch bool) { |
| 306 | defer func() { |
no test coverage detected