Skip to content

Commit e586a59

Browse files
committed
1 parent da241ac commit e586a59

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Sources/Swift/Integrations/SessionReplay/SentryReplayNetworkDetails.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,10 @@ enum NetworkBodyWarning: String {
197197

198198
// MARK: - Constants
199199

200-
/// Maximum body size in bytes before truncation (150KB).
201-
static let maxBodySize = 150 * 1_024
200+
/// Maximum body size in bytes before truncation.
201+
/// Mirrors `NETWORK_BODY_MAX_SIZE` from sentry-javascript's replay-internal:
202+
/// https://github.com/getsentry/sentry-javascript/blob/399cc859ce250ba5db3656685bd05794f571bee5/packages/replay-internal/src/constants.ts#L33
203+
static let maxBodySize = 150_000
202204

203205
/// Key used to store network details in breadcrumb data dictionary.
204206
@objc public static let replayNetworkDetailsKey = "_networkDetails"

0 commit comments

Comments
 (0)