Skip to content

Commit 3aca9ae

Browse files
Remove Sentry metrics code (#101)
Code Reviewed, looks good.
1 parent e8c7591 commit 3aca9ae

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

EmpowerPlant/AppDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3838
options.attachViewHierarchy = true
3939
options.enableSwizzling = enableSwizzling
4040
options.enablePerformanceV2 = true
41-
// options.enableMetrics = true
4241

4342
// Enable Mobile Session Replay
4443
options.experimental.sessionReplay.onErrorSampleRate = 1.0

EmpowerPlant/CartViewController.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,9 @@ class CartViewController: UIViewController, UITableViewDelegate, UITableViewData
9898
if let httpResponse = response as? HTTPURLResponse {
9999
if (httpResponse.statusCode) == 500 {
100100
print("> 500 response")
101-
//SentrySDK.metrics.increment(key: "checkout.error")
102101
let err = PurchaseError.insufficientInventory
103102
SentrySDK.capture(error: err) //Empowerplant Flagship Error
104103
} else {
105-
//SentrySDK.metrics.increment(key: "checkout.success")
106104
}
107105
}
108106

EmpowerPlant/EmpowerPlantViewController.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,6 @@ class EmpowerPlantViewController: UIViewController {
323323
let task = URLSession.shared.dataTask(with: url) { data, response, error in
324324
let endTime = Date()
325325
let duration = endTime.timeIntervalSince(startTime)
326-
/*SentrySDK.metrics.distribution(
327-
key: "products_request.duration",
328-
value: duration,
329-
unit: MeasurementUnitDuration.millisecond,
330-
tags: ["endpoint": urlStr]
331-
)*/
332326

333327
if let data = data {
334328
if let productsResponse = try? JSONDecoder().decode([ProductMap].self, from: data) {
@@ -370,7 +364,6 @@ class EmpowerPlantViewController: UIViewController {
370364

371365
@objc
372366
func goToCart() {
373-
//SentrySDK.metrics.increment(key: "checkout.click")
374367
self.performSegue(withIdentifier: "goToCart", sender: self)
375368
}
376369

0 commit comments

Comments
 (0)