Skip to content

RUM Configuration

RUM Initialization Configuration

FTUnityBridge.InitRUMConfig(new RUMConfig()
{
    androidAppId = "androidAppId",
    iOSAppId = "iOSAppId",
    sampleRate = 0.8f,
});
Field Type Required Description
androidAppId string Yes Corresponds to setting the RUM appid. RUM collection is enabled only after this is set. How to get appid
iOSAppId string Yes Corresponds to setting the RUM appid. RUM collection is enabled only after this is set. How to get appid
sampleRate float No Sampling rate, value range [0,1]. 0 means no collection, 1 means full collection. Default is 1. Scope applies to all View, Action, LongTask, and Error data under the same session_id.
sessionOnErrorSampleRate float No Sets the error collection rate. When a session is not sampled by sampleRate, if an error occurs during the session, data from the 1 minute before the error can be collected. Default is 0.
enableNativeUserAction boolean No Whether to track Native Action, such as Button click events. Default is false. Not supported for Android cloud builds.
enableNativeUserResource boolean No Whether to enable automatic Native Resource tracking. Default is false. Not supported for Android cloud builds. For iOS, enabling this will also collect resources initiated by system APIs. In this case, please disable manual collection on iOS to prevent duplicate data collection.
enableNativeUserView boolean No Whether to enable automatic Native View tracking. Default is false.
errorMonitorType string/array No Supplementary error monitoring types: all, battery, memory, cpu. Not set by default.
deviceMonitorType string/array No Supplementary page monitoring types: all, battery (Android only), memory, cpu, fps. Not set by default.
detectFrequency string No Page monitoring frequency: normal (default), frequent, rare.
globalContext object No Custom global parameters. Special key: track_id (used for tracking functionality).
enableResourceHostIP boolean No Whether to collect the IP address of the requested target domain. Only affects the default collection when enableNativeUserResource = true.
enableTrackNativeCrash boolean No Whether to enable Android Java Crash and OC/C/C++ crash monitoring. Default is false.
enableTrackNativeAppANR boolean No Whether to enable Native ANR monitoring. Default is false.
enableTrackNativeFreeze boolean No Whether to enable automatic Native Freeze tracking. Default is false.
nativeFreezeDurationMs number No Sets the threshold for collecting Native Freeze stutters. Value range [100,), unit is milliseconds. Default is 250ms for iOS, 1000ms for Android.
rumDiscardStrategy string No Discard strategy: discard discards new data (default), discardOldest discards oldest data.
rumCacheLimitCount number No Maximum limit for locally cached RUM entries [10_000,). Default is 100_000.