Remove Reporting (#411)

This commit is contained in:
Fedor Korotkov
2023-02-09 20:47:54 +04:00
committed by GitHub
parent b242f27f49
commit 78f7ba8f80
3 changed files with 0 additions and 30 deletions
-4
View File
@@ -44,10 +44,6 @@ brews:
skip_upload: auto
dependencies:
- "cirruslabs/cli/softnet"
post_install: |
ENV["SENTRY_DSN"] = "https://606fab64ced94f0991109ac5467e23da@o4504250314522624.ingest.sentry.io/4504606552424448"
system "#{bin}/tart report-installation"
ENV.delete("SENTRY_DSN")
custom_block: |
depends_on :macos => :monterey
@@ -1,25 +0,0 @@
import ArgumentParser
import Foundation
import Sentry
struct ReportInstallation: AsyncParsableCommand {
static var configuration = CommandConfiguration(
commandName: "report-installation",
abstract: "Send installation event to Sentry if configured",
discussion: """
Reports macOS version and device model for analytics purposes.
Helps Cirrus Labs team to prioritize testing on most popular devices.
""",
shouldDisplay: false
)
func run() async throws {
let installationEvent = Event()
installationEvent.message = SentryMessage(formatted: "installed")
installationEvent.level = SentryLevel.info
installationEvent.user = nil
installationEvent.stacktrace = nil
let id = SentrySDK.capture(event: installationEvent)
print("Captured installation event #\(id)!")
}
}
-1
View File
@@ -25,7 +25,6 @@ struct Root: AsyncParsableCommand {
Rename.self,
Stop.self,
Delete.self,
ReportInstallation.self,
])
public static func main() async throws {