Skip to content

Commit ef11583

Browse files
committed
review-comment: Link replay frontend constants for reference
https://github.com/getsentry/sentry-cocoa/pull/7582/changes#r2907724349
1 parent 6b2e085 commit ef11583

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/Swift/Integrations/SessionReplay/SentryReplayNetworkDetails.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import Foundation
22

33
/// Warning codes for network body capture issues.
4+
///
5+
/// Raw values must match the frontend constants so the Sentry UI renders the correct warnings.
6+
/// - SeeAlso: https://github.com/getsentry/sentry/blob/8b79857b2eff86f4df2f3abaf1e46c74893e3781/static/app/utils/replays/replay.tsx#L5
47
enum NetworkBodyWarning: String {
58
case jsonTruncated = "JSON_TRUNCATED"
69
case textTruncated = "TEXT_TRUNCATED"

0 commit comments

Comments
 (0)