1.5 KiB
Configuration for Sentry
Context
- Twake Mail uses Sentry for error and performance reporting when configuration and consent allow it.
How to config
-
Set web values in
env.file.SENTRY_ENABLED=true SENTRY_DSN=<your_sentry_dsn> SENTRY_ENVIRONMENT=<environment_name>Web starts Sentry at startup only with
SENTRY_ENABLED=trueand nonblank DSN and environment, then setsisReportingAllowed=truein memory. -
Choose web fallback or disable Sentry.
Any nonblank value among the three variables selects
env.file.SENTRY_ENABLED=false,SENTRY_ENABLED=, or a missingSENTRY_ENABLEDprevents env startup. A selected but disabled or incomplete env config hides the reporting preference and never falls back. SetSENTRY_ENABLED=falseto disable web Sentry regardless of the other values. Web falls back to the ecosystem only when all three values are absent or blank. -
Configure the ecosystem and consent.
Web fallback and Sentry on mobile require ecosystem
enabledset totrue, nonblank DSN and environment, and effective consent. After ecosystem loading, consent isserver sentryUserOptIn ?? ecosystem userOptInByDefault ?? false. If the Sentry section is missing, web env reporting defaults tofalse, while web fallback and mobile keep the SDK off. -
Verify.
With valid configuration and consent, trigger a sample error and verify that it appears in Sentry.