web: filter all errors reported to Sentry
Created by: valerybugakov
Context
We stopped reporting some errors to Sentry and applied the filter function in the ErrorBoundary
component. It doesn't affect unhandled errors that happened outside of this part of the React tree.
Changes
- Filter function is moved to the
beforeSend
property of the Sentry configuration to filter all incoming events.