@@ -24,48 +24,50 @@ struct HackerNewsApp: App {
2424 EMGReaper . sharedInstance ( ) . start (
2525 withAPIKey: " f77fb081-cfc2-4d15-acb5-18bad59c9376 " )
2626
27- SentrySDK . start { options in
28- options. dsn =
29- " https://[email protected] /4506027753668608 " 30-
31- options. configureUserFeedback = { config in
32- config. onSubmitSuccess = { data in
33- print ( " Feedback submitted successfully: \( data) " )
34- }
35- config. onSubmitError = { error in
36- print ( " Failed to submit feedback: \( error) " )
27+ if ProcessInfo . processInfo. environment [ " EMERGE_IS_RUNNING_FOR_SNAPSHOTS " ] != " 1 " {
28+ SentrySDK . start { options in
29+ options. dsn =
30+ " https://[email protected] /4506027753668608 " 31+
32+ options. configureUserFeedback = { config in
33+ config. onSubmitSuccess = { data in
34+ print ( " Feedback submitted successfully: \( data) " )
35+ }
36+ config. onSubmitError = { error in
37+ print ( " Failed to submit feedback: \( error) " )
38+ }
3739 }
38- }
39-
40- options. enableAppHangTracking = true
41- options. sessionReplay. onErrorSampleRate = 1.0
42- options. sendDefaultPii = true
43- options. enableLogs = true
44-
40+
41+ options. enableAppHangTracking = true
42+ options. sessionReplay. onErrorSampleRate = 1.0
43+ options. sendDefaultPii = true
44+ options. enableLogs = true
45+
4546#if DEBUG
46- options. environment = " development "
47- options. sessionReplay. sessionSampleRate = 1.0
48- options. tracesSampleRate = 1
49- // options.debug = true
50- options. configureProfiling = {
51- $0. profileAppStarts = true
52- $0. lifecycle = . trace
53- $0. sessionSampleRate = 1.0
54- }
47+ options. environment = " development "
48+ options. sessionReplay. sessionSampleRate = 1.0
49+ options. tracesSampleRate = 1
50+ // options.debug = true
51+ options. configureProfiling = {
52+ $0. profileAppStarts = true
53+ $0. lifecycle = . trace
54+ $0. sessionSampleRate = 1.0
55+ }
5556#else
56- options. environment = " production "
57- options. sessionReplay. sessionSampleRate = 0.1
58- options. tracesSampleRate = 0.1
59- options. debug = false
60- options. configureProfiling = {
61- $0. profileAppStarts = true
62- $0. lifecycle = . trace
63- $0. sessionSampleRate = 0.1
64- }
57+ options. environment = " production "
58+ options. sessionReplay. sessionSampleRate = 0.1
59+ options. tracesSampleRate = 0.1
60+ options. debug = false
61+ options. configureProfiling = {
62+ $0. profileAppStarts = true
63+ $0. lifecycle = . trace
64+ $0. sessionSampleRate = 0.1
65+ }
6566#endif
66-
67- if NSClassFromString ( " XCTest " ) != nil {
68- options. environment = " xctest "
67+
68+ if NSClassFromString ( " XCTest " ) != nil {
69+ options. environment = " xctest "
70+ }
6971 }
7072 }
7173 Logger . info ( " App launched " )
0 commit comments