longTaskThreshold property
The amount of elapsed time that is considered to be a "long task", in seconds.
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.
The Datadog iOS and Android SDKs will also report if their main threads are stalled for longer than this threshold, and will also appear as a Long Task in the Datadog RUM Explorer
Note -- this argument is ignored on Flutter Web, which always uses a value of 0.05 seconds (50ms). See documentation on RUM Browser Monitoring
Defaults to 0.1 seconds
Implementation
double longTaskThreshold;