Skip to content

Make enableUncaughtNSExceptionReporting configurable #306

Description

@Usiel

Sentry recommends failing on uncaught exceptions: https://docs.sentry.io/platforms/apple/guides/macos/#uncaught-nsexceptions

SentrySDK.start { options in
    options.enableUncaughtNSExceptionReporting = true
    ...
}

It would be great if we could make this configurable in AutomatticTracksiOS. Maybe this is a good time to expose a callback that allows us to mutate the Sentry's options object at the very end of SentrySDK.start, so we don't need to wrap every little possible configuration, e.g.

SentrySDK.start { options in
    ...
    options.onCrashedLastRun = self.dataProvider.onCrashedLastRun
    if let modifier = self.optionsModifier { // ((Options) -> Void)?
        modifier(options)
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions