feat(multiplayer): export bounded API metrics

This commit is contained in:
Josh Creek
2026-09-01 17:06:38 +01:00
parent d85c8b8194
commit f1b8366531
7 changed files with 217 additions and 5 deletions
+2
View File
@@ -28,6 +28,7 @@ import (
"github.com/cosmic-clash/cosmic-clash/server/api"
"github.com/cosmic-clash/cosmic-clash/server/domain"
"github.com/cosmic-clash/cosmic-clash/server/migrations"
"github.com/cosmic-clash/cosmic-clash/server/observability"
"github.com/cosmic-clash/cosmic-clash/server/store"
_ "github.com/jackc/pgx/v5/stdlib"
)
@@ -72,6 +73,7 @@ func main() {
},
ProbeRecorder: store.PostgresQueue{DB: db},
WorkloadVerify: api.WorkloadVerifierFromSignedToken([]byte(*workloadSecret), db),
Metrics: observability.NewMetrics(),
Now: func() time.Time { return time.Now().UTC() },
}
handler := service.Handler()