chore: move stat reporting into workspacestats package (#13386)

This commit is contained in:
Garrett Delfosse
2024-05-29 11:49:08 -04:00
committed by GitHub
parent afd9d3b35f
commit 5789ea5397
19 changed files with 314 additions and 346 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ type appStatsReporter struct {
Client *wsproxysdk.Client
}
func (r *appStatsReporter) Report(ctx context.Context, stats []workspaceapps.StatsReport) error {
func (r *appStatsReporter) ReportAppStats(ctx context.Context, stats []workspaceapps.StatsReport) error {
err := r.Client.ReportAppStats(ctx, wsproxysdk.ReportAppStatsRequest{
Stats: stats,
})