diff --git a/EmpowerPlant.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/EmpowerPlant.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index a64cb99..2f7c13e 100644 --- a/EmpowerPlant.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/EmpowerPlant.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -15,10 +15,10 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/getsentry/sentry-cocoa", "state" : { - "revision" : "5575af93efb776414f243e93d6af9f6258dc539a", - "version" : "8.36.0" + "revision" : "0ffc3c6287461962cb2a81e57fc0ee0335d8d56a", + "version" : "8.40.1" } } ], - "version" : 2 + "version" : 3 } diff --git a/EmpowerPlant/AppDelegate.swift b/EmpowerPlant/AppDelegate.swift index 195839a..ca50f5f 100644 --- a/EmpowerPlant/AppDelegate.swift +++ b/EmpowerPlant/AppDelegate.swift @@ -38,7 +38,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate { options.attachViewHierarchy = true options.enableSwizzling = enableSwizzling options.enablePerformanceV2 = true - options.enableMetrics = true + // options.enableMetrics = true + + // Enable Mobile Session Replay + options.experimental.sessionReplay.onErrorSampleRate = 1.0 + options.experimental.sessionReplay.sessionSampleRate = 1.0 } SentrySDK.configureScope{ scope in scope.setTag(value: ["corporate", "enterprise", "self-serve"].randomElement() ?? "unknown", key: "customer.type") diff --git a/EmpowerPlant/CartViewController.swift b/EmpowerPlant/CartViewController.swift index f8cbf21..32a4468 100644 --- a/EmpowerPlant/CartViewController.swift +++ b/EmpowerPlant/CartViewController.swift @@ -98,11 +98,11 @@ class CartViewController: UIViewController, UITableViewDelegate, UITableViewData if let httpResponse = response as? HTTPURLResponse { if (httpResponse.statusCode) == 500 { print("> 500 response") - SentrySDK.metrics.increment(key: "checkout.error") + //SentrySDK.metrics.increment(key: "checkout.error") let err = PurchaseError.insufficientInventory SentrySDK.capture(error: err) //Empowerplant Flagship Error } else { - SentrySDK.metrics.increment(key: "checkout.success") + //SentrySDK.metrics.increment(key: "checkout.success") } } diff --git a/EmpowerPlant/EmpowerPlantViewController.swift b/EmpowerPlant/EmpowerPlantViewController.swift index ce3fc50..b5c1d6c 100644 --- a/EmpowerPlant/EmpowerPlantViewController.swift +++ b/EmpowerPlant/EmpowerPlantViewController.swift @@ -323,12 +323,12 @@ class EmpowerPlantViewController: UIViewController { let task = URLSession.shared.dataTask(with: url) { data, response, error in let endTime = Date() let duration = endTime.timeIntervalSince(startTime) - SentrySDK.metrics.distribution( + /*SentrySDK.metrics.distribution( key: "products_request.duration", value: duration, unit: MeasurementUnitDuration.millisecond, tags: ["endpoint": urlStr] - ) + )*/ if let data = data { if let productsResponse = try? JSONDecoder().decode([ProductMap].self, from: data) { @@ -370,7 +370,7 @@ class EmpowerPlantViewController: UIViewController { @objc func goToCart() { - SentrySDK.metrics.increment(key: "checkout.click") + //SentrySDK.metrics.increment(key: "checkout.click") self.performSegue(withIdentifier: "goToCart", sender: self) }