Skip to content

Make enableUncaughtNSExceptionReporting configurable #306

@Usiel

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)
    }
}

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