fix(telemetry): review findings

- wau/mau trailing scans run hourly and on day finalization, not every tick
- exclusion lookup failures cached 30s so an st outage cannot amplify
- unverified relation filter dropped; player emptiness checked in js
- anonymous unauthenticated read failures no longer logged
- alerts and exclusions ensure supertokens init on cold pods
This commit is contained in:
2026-08-25 23:26:34 -07:00
parent 31f6237446
commit 1ddcffc511
8 changed files with 93 additions and 15 deletions
+2
View File
@@ -31,6 +31,8 @@ const getAdminPlayerIds = async (): Promise<string[]> => {
return adminPlayersCache.playerIds;
}
const { ensureSuperTokensBackend } = await import("@/lib/supertokens/server");
ensureSuperTokensBackend();
const UserRoles = (await import("supertokens-node/recipe/userroles")).default;
const response = await UserRoles.getUsersThatHaveRole("public", ADMIN_ROLE);
const users = response.status === "OK" ? response.users : [];