Add `options.ignoreErrors` accepting String and Regex
Description
Javascript and some other Sentry SDKs already have this option. The reason to add it to sentry-java are Hybrid SDKs. At the moment users of hybrids have to manually initialize the native SDKs to filter out native errors in beforeSend. Having ignoreErrors in sentry-java enables hybrid SDKs to pass the hybrid ignoreErrors enabling user filter both hybrid and native errors.
https://docs.sentry.io/platforms/react-native/configuration/options/#ignore-errors
Implementation
The option should be accepting Strings and Regexes.
- As a public option for native and hybrid users.
- As an option for Hybrid SDKs only (hidden in InternalSentrySDK)
Related issues
- https://github.com/getsentry/sentry-cocoa/issues/4046
@krystofwoldrich fyi we already have addIgnoredExceptionForType but that only accepts classes.
Similar to https://github.com/getsentry/sentry-java/issues/2660
@krystofwoldrich do you need ignoreErrors to be on the manifest options as well?
Only in code is perfect.