feat: improve event tracking and SDK robustness

- Add specific error tracking for rate-limited and oversized events in API response
- Ensure runtime settings are applied on initial access in settings manager
- Exclude /api/health from middleware protection
- Update Python SDK to v2.2.0 with unified standalone implementation
- Add auto_prune_days setting to database schema retrieval
This commit is contained in:
Team Dark Devil committed 2026-11-18 02:51:04 +06:00
1 parent 0c2e49cd47
commit 043123dc21
12 files changed
+1018 -128

No files matched your search

+6 -2
View File
@@ -165,7 +165,9 @@ export class SettingsManager {
if (!globals.__dataStackSettingsHydrated) {
void this.syncFromDatabase();
}
return { ...getSettingsState() };
const current = getSettingsState();
this.applyRuntimeSettings(current);
return { ...current };
}
public static async getSettingsAsync(): Promise<AdminSettings> {
@@ -173,7 +175,9 @@ export class SettingsManager {
if (fromDb) {
return { ...fromDb };
}
return { ...getSettingsState() };
const current = getSettingsState();
this.applyRuntimeSettings(current);
return { ...current };
}
public static getPublicSettings(): Omit<AdminSettings, "jwtSecret"> {