Automattic / Automattic/Automattic-Tracks-iOS

Make enableUncaughtNSExceptionReporting configurable

Open
#306 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
47
Forks
15
Avg merge
7h 58m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.