NewRelicFeatureFlags
public struct NewRelicFeatureFlags
Provides feature flags to enable or disable New Relic features [NRMAFeatureFlags].
Note on backgroundReporting: This feature registers BGTask launch handlers internally in the New Relic SDK. Enabling it on iOS / tvOS versions below 18 results in a runtime crash (“All launch handlers must be registered before application finishes launching”). Therefore, Background Reporting is enabled only on iOS 18+ and tvOS 18+.
-
init(interactionTracing:swiftInteractionTracing: crashReporting: nsURLSessionInstrumentation: httpResponseBodyCapture: webViewInstrumentation: requestErrorEvents: networkRequestsEvents: handledExceptionReporting: defaultInteractions: distributedTracing: appStartMetrics: fedRampEnabled: swiftAsyncURLSessionSupport: logReporting: newEventSystem: offlineStorage: backgroundReporting: autoCollectLogs: ) Undocumented
Declaration
Swift
public init( interactionTracing: Bool? = true, swiftInteractionTracing: Bool? = false, crashReporting: Bool? = true, nsURLSessionInstrumentation: Bool? = true, httpResponseBodyCapture: Bool? = true, webViewInstrumentation: Bool? = true, requestErrorEvents: Bool? = true, networkRequestsEvents: Bool? = true, handledExceptionReporting: Bool? = true, defaultInteractions: Bool? = true, distributedTracing: Bool? = true, appStartMetrics: Bool? = true, fedRampEnabled: Bool? = false, swiftAsyncURLSessionSupport: Bool? = false, logReporting: Bool? = false, newEventSystem: Bool? = false, offlineStorage: Bool? = false, backgroundReporting: Bool? = false, autoCollectLogs: Bool? = false )