Skip to content

Add options.ignoreErrors accepting String and Regex #4046

@krystofwoldrich

Description

@krystofwoldrich

Description

Description

Javascript and some other Sentry SDKs already have this option. The reason to add it to sentry-cocoa 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.

  1. As a public option for native and hybrid users.
  2. As an option for Hybrid SDKs only (hidden in PrivateSentrySDKOnly)

Related issues

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions