File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed 
sentry/src/main/java/io/sentry Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 99 * <p>Beware that experimental options can change at any time. 
1010 */ 
1111public  final  class  ExperimentalOptions  {
12-   private  @ NotNull  SentryReplayOptions  sessionReplay  = new  SentryReplayOptions ();
12+   private  @ NotNull  SentryReplayOptions  sessionReplay ;
13+ 
14+   public  ExperimentalOptions (final  boolean  empty ) {
15+     this .sessionReplay  = new  SentryReplayOptions (empty );
16+   }
1317
1418  @ NotNull 
1519  public  SentryReplayOptions  getSessionReplay () {
Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ public class SentryOptions {
485485
486486  @ ApiStatus .Experimental  private  @ Nullable  Cron  cron  = null ;
487487
488-   private  final  @ NotNull  ExperimentalOptions  experimental  =  new   ExperimentalOptions () ;
488+   private  final  @ NotNull  ExperimentalOptions  experimental ;
489489
490490  private  @ NotNull  ReplayController  replayController  = NoOpReplayController .getInstance ();
491491
@@ -2567,6 +2567,7 @@ public SentryOptions() {
25672567   * @param empty if options should be empty. 
25682568   */ 
25692569  private  SentryOptions (final  boolean  empty ) {
2570+     experimental  = new  ExperimentalOptions (empty );
25702571    if  (!empty ) {
25712572      // SentryExecutorService should be initialized before any 
25722573      // SendCachedEventFireAndForgetIntegration 
Original file line number Diff line number Diff line change @@ -96,14 +96,16 @@ public enum SentryReplayQuality {
9696  /** The maximum duration of a full session replay, defaults to 1h. */ 
9797  private  long  sessionDuration  = 60  * 60  * 1000L ;
9898
99-   public  SentryReplayOptions () {
100-     setRedactAllText (true );
101-     setRedactAllImages (true );
99+   public  SentryReplayOptions (final  boolean  empty ) {
100+     if  (!empty ) {
101+       setRedactAllText (true );
102+       setRedactAllImages (true );
103+     }
102104  }
103105
104106  public  SentryReplayOptions (
105107      final  @ Nullable  Double  sessionSampleRate , final  @ Nullable  Double  onErrorSampleRate ) {
106-     this ();
108+     this (false );
107109    this .sessionSampleRate  = sessionSampleRate ;
108110    this .onErrorSampleRate  = onErrorSampleRate ;
109111  }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments