Function
What was caught
Where it happened, as plain values
Settles once the report is handed to Sentry, or skipped; callers need not wait for it
A no-op until Sentry is started, which only happens when a DSN is
configured: local development and tests send nothing. The SDK is imported
on the first report rather than with this module, because everything that
can fail imports this helper and most sessions never report anything. The context never
carries personal data out: message bodies (body, html, text) are
dropped and email addresses are replaced with [email].
Reports an error the application caught and recovered from, so it still shows up in Sentry.