Files
worldmonitor/api/_sentry-edge.js
Elie Habib 663522ba2b fix(edge): fire-and-forget Sentry, 2s timeout, response check (#2559)
* fix(edge): fire-and-forget Sentry reporting, add 2s timeout and response check

- Remove await from captureEdgeException call sites so Sentry never
  blocks the response path when already on an error
- Add AbortSignal.timeout(2000) to bound latency on Sentry outage or
  slow edge egress
- Check response.ok and emit console.warn on non-2xx so misconfigured
  DSN or auth key is diagnosable rather than silently missing

* fix(sentry): add allowUrls to block DSN pollution from foreign origins

A foreign app (conservation-dash.web.app, biosentinel@2.4.0) was sending
errors to our Sentry project by reusing the public DSN. allowUrls drops
events from non-worldmonitor origins at the SDK level before ingestion.

* fix(edge): void fire-and-forget calls, improve non-2xx Sentry diagnostics
2026-03-31 07:28:35 +04:00

2.0 KiB