longTaskThreshold property

double longTaskThreshold
final

If the main isolate takes more than longTaskThreshold seconds to process a microtask, it will appear as a Long Task in Datadog RUM Explorer. This has a minimum of 0.02 seconds.

This threshold only applies to the Dart long task detector. The Native SDKs / will retain their own thresholds.

This option is ignored if RUM is not enabled in the Native SDK.

Defaults to 0.1 seconds

Implementation

final double longTaskThreshold;