File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
WooCommerce/Classes/Tools/Logging Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,26 @@ class WCCrashLoggingDataProvider: CrashLoggingDataProvider {
134134 ServiceLocator . crashLogging. setNeedsDataRefresh ( )
135135 }
136136 }
137+
138+ // MARK: – Performance Monitoring
139+
140+ var performanceTracking : PerformanceTracking {
141+ guard featureFlagService. isFeatureFlagEnabled ( . performanceMonitoring) else {
142+ return . disabled
143+ }
144+
145+ return . enabled(
146+ . init(
147+ // FIXME: Is there a way to control this via feature flags?
148+ sampler: { 0.1 } ,
149+ trackCoreData: featureFlagService. isFeatureFlagEnabled ( . performanceMonitoringCoreData) ,
150+ trackFileIO: featureFlagService. isFeatureFlagEnabled ( . performanceMonitoringFileIO) ,
151+ trackNetwork: featureFlagService. isFeatureFlagEnabled ( . performanceMonitoringNetworking) ,
152+ trackUserInteraction: featureFlagService. isFeatureFlagEnabled ( . performanceMonitoringUserInteraction) ,
153+ trackViewControllers: featureFlagService. isFeatureFlagEnabled ( . performanceMonitoringViewController)
154+ )
155+ )
156+ }
137157}
138158
139159struct CrashLoggingSettings {
You can’t perform that action at this time.
0 commit comments