Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Targets/App/Sources/Main/FlinkyApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ struct FlinkyApp: App {

// Configure Crash Reporting
options.enableCrashHandler = true
options.enableSigtermReporting = true
options.enableWatchdogTerminationTracking = true
options.attachStacktrace = true
options.enablePersistingTracesWhenCrashing = true
Expand All @@ -103,7 +102,6 @@ struct FlinkyApp: App {

// Configure App Hang
options.enableAppHangTracking = true
options.enableReportNonFullyBlockingAppHangs = false

// Configure File I/O
options.enableFileIOTracing = true
Expand Down Expand Up @@ -236,13 +234,13 @@ struct FlinkyApp: App {
options.enableMetrics = true

// Configure MetricKit
options.enableMetricKit = true
options.experimental.metrickit.enabledDiagnosticReports = Set(SentryMetricKit.DiagnosticReport.allCases)
options.experimental.metrickit.hangReportingMode = .flamegraphAttachment
options.experimental.metrickit.enabledMetricReports = .all
Comment thread
philprime marked this conversation as resolved.
Resolved
options.enableMetricKitRawPayload = true

// Configure Experimental Options
options.experimental.enableUnhandledCPPExceptionsV2 = false
options.experimental.enableWatchdogTerminationsV2 = true
}

var body: some Scene {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: OnLaunch-iOS-Client, nameSpecified: OnLaunch-iOS-Client, owner: kula-app, version: 0.0.6, source: https://github.com/kula-app/OnLaunch-iOS-Client

name: sentry-apple-swift-log, nameSpecified: SentrySwiftLog, owner: getsentry, version: 9.31.0, source: https://github.com/getsentry/sentry-apple-swift-log
name: sentry-apple-swift-log, nameSpecified: SentrySwiftLog, owner: getsentry, version: 9.32.0, source: https://github.com/getsentry/sentry-apple-swift-log

name: sentry-cocoa, nameSpecified: Sentry, owner: getsentry, version: 9.31.0, source: https://github.com/getsentry/sentry-cocoa
name: sentry-cocoa, nameSpecified: Sentry, owner: getsentry, version: 9.32.0, source: https://github.com/getsentry/sentry-cocoa

name: swift-log, nameSpecified: swift-log, owner: apple, version: 1.16.2, source: https://github.com/apple/swift-log

name: OnLaunch-iOS-Client, nameSpecified: OnLaunch-iOS-Client, owner: kula-app, version: 0.0.6, source: https://github.com/kula-app/OnLaunch-iOS-Client

name: sentry-apple-swift-log, nameSpecified: SentrySwiftLog, owner: getsentry, version: 9.31.0, source: https://github.com/getsentry/sentry-apple-swift-log
name: sentry-apple-swift-log, nameSpecified: SentrySwiftLog, owner: getsentry, version: 9.32.0, source: https://github.com/getsentry/sentry-apple-swift-log

name: sentry-cocoa, nameSpecified: Sentry, owner: getsentry, version: 9.31.0, source: https://github.com/getsentry/sentry-cocoa
name: sentry-cocoa, nameSpecified: Sentry, owner: getsentry, version: 9.32.0, source: https://github.com/getsentry/sentry-cocoa

name: swift-log, nameSpecified: swift-log, owner: apple, version: 1.16.2, source: https://github.com/apple/swift-log

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
<key>File</key>
<string>Licenses/sentry-apple-swift-log</string>
<key>Title</key>
<string>SentrySwiftLog (9.31.0)</string>
<string>SentrySwiftLog (9.32.0)</string>
<key>Type</key>
<string>PSChildPaneSpecifier</string>
</dict>
<dict>
<key>File</key>
<string>Licenses/sentry-cocoa</string>
<key>Title</key>
<string>Sentry (9.31.0)</string>
<string>Sentry (9.32.0)</string>
<key>Type</key>
<string>PSChildPaneSpecifier</string>
</dict>
Expand Down
18 changes: 7 additions & 11 deletions Targets/App/Sources/Services/AppHealthObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,9 @@ final class AppHealthObserver {
// Add breadcrumb for debugging context
let breadcrumb = Breadcrumb(level: isEscalation ? .warning : .info, category: "device_health")
breadcrumb.message = "Thermal state changed: \(fromString) → \(toString)"
breadcrumb.data = [
"from_state": fromString,
"to_state": toString,
"is_escalation": isEscalation
]
breadcrumb.setData(value: fromString, key: "from_state")
breadcrumb.setData(value: toString, key: "to_state")
breadcrumb.setData(value: isEscalation, key: "is_escalation")
SentrySDK.addBreadcrumb(breadcrumb)

previousThermalState = newState
Expand Down Expand Up @@ -159,12 +157,10 @@ final class AppHealthObserver {
// Add breadcrumb for debugging context
let breadcrumb = Breadcrumb(level: .info, category: "network")
breadcrumb.message = "Network changed: \(statusString) via \(interfaceType)"
breadcrumb.data = [
"status": statusString,
"interface": interfaceType,
"is_expensive": path.isExpensive,
"is_constrained": path.isConstrained
]
breadcrumb.setData(value: statusString, key: "status")
breadcrumb.setData(value: interfaceType, key: "interface")
breadcrumb.setData(value: path.isExpensive, key: "is_expensive")
breadcrumb.setData(value: path.isConstrained, key: "is_constrained")
SentrySDK.addBreadcrumb(breadcrumb)

previousNetworkStatus = status
Expand Down
34 changes: 13 additions & 21 deletions Targets/App/Sources/Services/DataSeedingService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ final class DataSeedingService {
statusBreadcrumb.category = "database.query"
statusBreadcrumb.level = .debug
statusBreadcrumb.timestamp = Date()
statusBreadcrumb.data = ["is_seeded": isSeeded]
statusBreadcrumb.setData(value: isSeeded, key: "is_seeded")
SentrySDK.addBreadcrumb(statusBreadcrumb)

return isSeeded
Expand Down Expand Up @@ -123,10 +123,8 @@ final class DataSeedingService {
successBreadcrumb.category = "database.metadata"
successBreadcrumb.level = .info
successBreadcrumb.timestamp = Date()
successBreadcrumb.data = [
"marker_id": seededMarker.id.uuidString,
"created_at": ISO8601DateFormatter().string(from: seededMarker.createdAt)
]
successBreadcrumb.setData(value: seededMarker.id.uuidString, key: "marker_id")
successBreadcrumb.setData(value: ISO8601DateFormatter().string(from: seededMarker.createdAt), key: "created_at")
SentrySDK.addBreadcrumb(successBreadcrumb)
} catch {
logger.error("Failed to mark database as seeded: \(error)")
Expand Down Expand Up @@ -164,11 +162,9 @@ final class DataSeedingService {
myLinksBreadcrumb.category = "database.seeding"
myLinksBreadcrumb.level = .info
myLinksBreadcrumb.timestamp = Date()
myLinksBreadcrumb.data = [
"list_name": myLinksList.name,
"link_count": myLinksList.links.count,
"is_pinned": myLinksList.isPinned
]
myLinksBreadcrumb.setData(value: myLinksList.name, key: "list_name")
myLinksBreadcrumb.setData(value: myLinksList.links.count, key: "link_count")
myLinksBreadcrumb.setData(value: myLinksList.isPinned, key: "is_pinned")
SentrySDK.addBreadcrumb(myLinksBreadcrumb)

// Create "Favorites" list with yellow color, star symbol, pinned, and 1 link
Expand All @@ -180,13 +176,11 @@ final class DataSeedingService {
favoritesBreadcrumb.category = "database.seeding"
favoritesBreadcrumb.level = .info
favoritesBreadcrumb.timestamp = Date()
favoritesBreadcrumb.data = [
"list_name": favoritesList.name,
"link_count": favoritesList.links.count,
"is_pinned": favoritesList.isPinned,
"color": favoritesList.color?.rawValue ?? "none",
"symbol": favoritesList.symbol?.rawValue ?? "none"
]
favoritesBreadcrumb.setData(value: favoritesList.name, key: "list_name")
favoritesBreadcrumb.setData(value: favoritesList.links.count, key: "link_count")
favoritesBreadcrumb.setData(value: favoritesList.isPinned, key: "is_pinned")
favoritesBreadcrumb.setData(value: favoritesList.color?.rawValue ?? "none", key: "color")
favoritesBreadcrumb.setData(value: favoritesList.symbol?.rawValue ?? "none", key: "symbol")
SentrySDK.addBreadcrumb(favoritesBreadcrumb)

// Save the context
Expand All @@ -199,10 +193,8 @@ final class DataSeedingService {
successBreadcrumb.category = "database.seeding"
successBreadcrumb.level = .info
successBreadcrumb.timestamp = Date()
successBreadcrumb.data = [
"lists_created": 2,
"total_links_created": myLinksList.links.count + favoritesList.links.count
]
successBreadcrumb.setData(value: 2, key: "lists_created")
successBreadcrumb.setData(value: myLinksList.links.count + favoritesList.links.count, key: "total_links_created")
SentrySDK.addBreadcrumb(successBreadcrumb)
} catch {
logger.error("Failed to save seeded data: \(error)")
Expand Down
Loading
Loading