From 125c7d0ccf037f3163142e1f07d05991d38d4816 Mon Sep 17 00:00:00 2001 From: Jay Wedgeworth <12656028+jaywedgeworth22@users.noreply.github.com> Date: Sun, 1 Nov 2026 21:14:15 -0600 Subject: [PATCH 1/2] fix(gb-monitor): compactMap Sentry exception types so the Mac build compiles --- Sources/CodeCaps/SentryTelemetry.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CodeCaps/SentryTelemetry.swift b/Sources/CodeCaps/SentryTelemetry.swift index 1df437dd..0401aeca 100644 --- a/Sources/CodeCaps/SentryTelemetry.swift +++ b/Sources/CodeCaps/SentryTelemetry.swift @@ -42,7 +42,7 @@ enum SentryTelemetry { options.beforeSend = { event in if isThirdPartyFailedRequest( url: event.request?.url, - exceptionTypes: event.exceptions?.map(\.type) ?? [] + exceptionTypes: event.exceptions?.compactMap { $0.type } ?? [] ) { return nil } return sanitize(event) } From 1c91aed8d893b368a80c46192d15c597c153f8e1 Mon Sep 17 00:00:00 2001 From: Jay Wedgeworth <12656028+jaywedgeworth22@users.noreply.github.com> Date: Mon, 2 Nov 2026 01:02:26 -0600 Subject: [PATCH 2/2] gb-monitor: fix iOS companion build (Sentry exception type is optional) --- ios/CodeCapsCompanion/App/SentryTelemetry.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/CodeCapsCompanion/App/SentryTelemetry.swift b/ios/CodeCapsCompanion/App/SentryTelemetry.swift index 00f65cf9..df11d2ac 100644 --- a/ios/CodeCapsCompanion/App/SentryTelemetry.swift +++ b/ios/CodeCapsCompanion/App/SentryTelemetry.swift @@ -49,7 +49,7 @@ enum SentryTelemetry { options.beforeSend = { event in if isThirdPartyFailedRequest( url: event.request?.url, - exceptionTypes: event.exceptions?.map(\.type) ?? [] + exceptionTypes: event.exceptions?.compactMap { $0.type } ?? [] ) { return nil } return sanitize(event) }