Skip to content
Docs
Changelog

Native crash reports from the Expo app reach a locked-down tracker

The Worker serves /api/<project id>/envelope/ as the app's DSN host, so crashes, app hangs and ANRs reach the tracker behind the ingest key again.

Markdown

  • The Worker as the app's DSN host. The native SDKs (sentry-cocoa, sentry-android) ignore tunnel and post to the DSN's host, so with the locked-down tracker the app lost its native crashes, app hangs and ANRs. POST /api/<project id>/envelope/ on the Worker now relays them: it accepts only the project ids in the new ERROR_REPORTING_RELAY_DSNS (the app's real DSNs, one per id), requires that DSN's public key, caps bodies at 256 KB on the wire and at the locked tracker's 1,000,000 bytes unpacked, counts each envelope in the tunnel's database limit (one budget of 30 a minute per sender for both routes), scrubs every event and forwards it to the real DSN with the ingest header, never following a redirect. It works the same on Workers and on the Node build. See error reporting. (2b9d5b2, e3d299c, 9ed835f, 4662115)
  • Native events are scrubbed on the server. Crash reports never run the app's beforeSend, so the relay passes every event through scrubEvent before forwarding: the user is reduced to its id, e-mail addresses and tokens are removed from texts and from the message objects the native SDKs send, and native HTTP breadcrumbs lose their query and fragment (http.query, http.fragment). The e-mail pattern now runs in linear time, since the relay scrubs text a sender chose. (e3d299c, 1c85653)
  • The app's public DSN names your server. Set EXPO_PUBLIC_ERROR_REPORTING_DSN to the app project's DSN with the host of EXPO_PUBLIC_SERVER_URL (https://<key>@app.example.com/3) and put the real DSN in ERROR_REPORTING_RELAY_DSNS. The app then starts with the native SDKs on. A DSN on the tracker keeps the tunnel and JS-only reporting. A local run proved a JS error and a SIGSEGV crash from the iOS simulator through the relay into Rustrak behind the locked Caddy profile. (3c2e541, 035142a)
Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.