Skip to content

Commit c79fd90

Browse files
authored
refactor: Increase maximum attachment size to 200MB (#6726)
1 parent f41cbcd commit c79fd90

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
- Replace deprecated SCNetworkReachability with NWPathMonitor (#6019)
5656
- Expose attachment type on `SentryAttachment` for downstream SDKs (like sentry-godot) (#6521)
5757
- Increase attachment max size to 100MB (#6537)
58+
- Increase maximum attachment size to 200MB (#6726)
5859

5960
### Features
6061

Sources/Swift/Options.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@
206206
@objc public var attachStacktrace: Bool = true
207207

208208
/// The maximum size for each attachment in bytes.
209-
/// @note Default is 100 MiB (100 ✕ 1024 ✕ 1024 bytes).
209+
/// @note Default is 200 MiB (200 ✕ 1024 ✕ 1024 bytes).
210210
/// @note Please also check the maximum attachment size of relay to make sure your attachments don't
211211
/// get discarded there:
212212
/// https://docs.sentry.io/product/relay/options/
213-
@objc public var maxAttachmentSize: UInt = 100 * 1_024 * 1_024
213+
@objc public var maxAttachmentSize: UInt = 200 * 1_024 * 1_024
214214

215215
/// When enabled, the SDK sends personal identifiable along with events.
216216
/// @note The default is NO.

Tests/SentryTests/SentryOptionsTest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ - (void)assertDefaultValues:(SentryOptions *)options
710710
XCTAssertEqual(YES, options.enableWatchdogTerminationTracking);
711711
XCTAssertEqual([@30000 unsignedIntValue], options.sessionTrackingIntervalMillis);
712712
XCTAssertEqual(YES, options.attachStacktrace);
713-
XCTAssertEqual(100 * 1024 * 1024, options.maxAttachmentSize);
713+
XCTAssertEqual(200 * 1024 * 1024, options.maxAttachmentSize);
714714
XCTAssertEqual(NO, options.sendDefaultPii);
715715
XCTAssertTrue(options.enableAutoPerformanceTracing);
716716
#if SENTRY_HAS_UIKIT
@@ -829,7 +829,7 @@ - (void)testDefaultMaxAttachmentSize
829829
{
830830
SentryOptions *options = [self getValidOptions:@{}];
831831

832-
XCTAssertEqual(100 * 1024 * 1024, options.maxAttachmentSize);
832+
XCTAssertEqual(200 * 1024 * 1024, options.maxAttachmentSize);
833833
}
834834

835835
- (void)testSendDefaultPii

0 commit comments

Comments
 (0)