Toggle and Sampling Configuration

更新时间:
复制 MD 格式

Android platform:

iOS platform:

You can configure toggles and the sample rate in the product console. Once sent to the software development kit (SDK), these configurations take priority over the default configurations set during SDK integration.

  • Special feature toggles: Turn on the toggles for specific advanced features to enable data collection. After you turn on a toggle, you can configure the sample rate.

  • Sample rate configuration: The default and maximum sample rate is 100%. When a device starts, the system determines whether to sample the current page view (PV). You can lower the sample rate as needed.

Note: On the Android platform, out-of-memory (OOM) exceptions are included in Crash Analytics. If you turn off the Crash Analytics toggle in the SDK, OOM exceptions will not be collected. On the iOS platform, you can set the sample rate for OOM exceptions.

  • SDK configuration:

    • You can set the maximum number of custom exceptions that can be reported per device per day. The default is 20, and the maximum is 120.

    • The default reporting policy for custom exceptions is to send them with crash reports. You can also change the policy to real-time reporting. Note: For iOS, after you enable real-time reporting, do not call custom exceptions multiple times within one minute. Frequent calls with real-time reporting can affect performance and may even cause an OOM.

  • Other configurations:

    • Include ignored faults in statistics: This setting is enabled by default. If you disable it, faults marked as ignored in Crash Analytics, ANR Analysis, Custom Exception, Lag Analysis, OOM Exception, and Launch Crash Analysis are not included in module trend metrics and charts.

    • Display ignored faults in the fault list: This setting is enabled by default. If you disable it, faults marked as ignored in Crash Analytics, ANR Analysis, Custom Exception, Lag Analysis, OOM Exception, and Launch Crash Analysis are not displayed in the fault list.