Commit 3e2bab6
committed
fix(monitoring): skip 4xx errors in handleError to silence bot 404 noise
Bot probes on /:username/:slug-like paths (e.g. /core/app/.env) were
slipping through the allowlist as valid-looking routes. Root cause:
SvelteKit handleError fires for all unhandled errors including 404s.
Only 5xx errors are real server problems worth alerting on.1 parent 5c1035f commit 3e2bab6
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
0 commit comments