File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 3838### Improvements
3939
4040- Replace deprecated SCNetworkReachability with NWPathMonitor (#6019)
41+ - Increase attachment max size to 100MB (#6537)
4142
4243## 8.57.0
4344
Original file line number Diff line number Diff line change @@ -82,7 +82,9 @@ - (instancetype)init
8282 self.enableWatchdogTerminationTracking = YES ;
8383 self.sessionTrackingIntervalMillis = [@30000 unsignedIntValue ];
8484 self.attachStacktrace = YES ;
85- self.maxAttachmentSize = 20 * 1024 * 1024 ;
85+ // Maximum attachment size is 100 MiB, matches Relay's limit:
86+ // https://develop.sentry.dev/sdk/data-model/envelopes/#size-limits
87+ self.maxAttachmentSize = 100 * 1024 * 1024 ;
8688 self.sendDefaultPii = NO ;
8789 self.enableAutoPerformanceTracing = YES ;
8890 self.enablePersistingTracesWhenCrashing = NO ;
Original file line number Diff line number Diff line change @@ -724,7 +724,7 @@ - (void)assertDefaultValues:(SentryOptions *)options
724724 XCTAssertEqual (YES , options.enableWatchdogTerminationTracking );
725725 XCTAssertEqual ([@30000 unsignedIntValue ], options.sessionTrackingIntervalMillis );
726726 XCTAssertEqual (YES , options.attachStacktrace );
727- XCTAssertEqual (20 * 1024 * 1024 , options.maxAttachmentSize );
727+ XCTAssertEqual (100 * 1024 * 1024 , options.maxAttachmentSize );
728728 XCTAssertEqual (NO , options.sendDefaultPii );
729729 XCTAssertTrue (options.enableAutoPerformanceTracing );
730730#if SENTRY_HAS_UIKIT
@@ -844,7 +844,7 @@ - (void)testDefaultMaxAttachmentSize
844844{
845845 SentryOptions *options = [self getValidOptions: @{}];
846846
847- XCTAssertEqual (20 * 1024 * 1024 , options.maxAttachmentSize );
847+ XCTAssertEqual (100 * 1024 * 1024 , options.maxAttachmentSize );
848848}
849849
850850- (void )testSendDefaultPii
Original file line number Diff line number Diff line change 1- 0.61.0
1+ 0.62.1
You can’t perform that action at this time.
0 commit comments