Skip to content

Commit

Permalink
feat: Add a replay quality option for Objc (#4267)
Browse files Browse the repository at this point in the history
Quality options was not exposed to Objc.
  • Loading branch information
brustolin authored Aug 12, 2024
1 parent d26c417 commit 594c2e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
6 changes: 6 additions & 0 deletions Samples/iOS-ObjectiveC/iOS-ObjectiveC/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down

0 comments on commit 594c2e6

Please sign in to comment.