diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ab51d1422f..e18ffbb7c67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Features + +- Add replay quality option for Objective-C (#4267) + ## 8.33.0 This release fixes a bug (#4230) that we introduced with a refactoring (#4101) released in [8.30.1](https://github.com/getsentry/sentry-cocoa/releases/tag/8.30.1). diff --git a/Samples/iOS-ObjectiveC/iOS-ObjectiveC/AppDelegate.m b/Samples/iOS-ObjectiveC/iOS-ObjectiveC/AppDelegate.m index a4c8e5d6fcf..ddaca944199 100644 --- a/Samples/iOS-ObjectiveC/iOS-ObjectiveC/AppDelegate.m +++ b/Samples/iOS-ObjectiveC/iOS-ObjectiveC/AppDelegate.m @@ -26,6 +26,12 @@ - (BOOL)application:(UIApplication *)application [[SentryHttpStatusCodeRange alloc] initWithMin:400 max:599]; options.failedRequestStatusCodes = @[ httpStatusCodeRange ]; + options.experimental.sessionReplay.quality = SentryReplayQualityMedium; + options.experimental.sessionReplay.redactAllText = true; + options.experimental.sessionReplay.redactAllImages = true; + options.experimental.sessionReplay.sessionSampleRate = 0; + options.experimental.sessionReplay.onErrorSampleRate = 1; + options.initialScope = ^(SentryScope *scope) { [scope setTagValue:@"" forKey:@""]; return scope; diff --git a/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift b/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift index bd5cca99a61..4c9ef876d98 100644 --- a/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift +++ b/Sources/Swift/Integrations/SessionReplay/SentryReplayOptions.swift @@ -6,6 +6,7 @@ public class SentryReplayOptions: NSObject, SentryRedactOptions { /** * Enum to define the quality of the session replay. */ + @objc public enum SentryReplayQuality: Int { /** * Video Scale: 80%