DatadogRumConfiguration constructor

DatadogRumConfiguration({
  1. required String applicationId,
  2. double sessionSamplingRate = 100.0,
  3. double traceSampleRate = 20.0,
  4. bool detectLongTasks = true,
  5. double longTaskThreshold = 0.1,
  6. bool trackFrustrations = true,
  7. VitalsFrequency? vitalUpdateFrequency = VitalsFrequency.average,
  8. bool reportFlutterPerformance = false,
  9. String? customEndpoint,
  10. double telemetrySampleRate = 20.0,
  11. RumViewEventMapper? viewEventMapper,
  12. RumActionEventMapper? actionEventMapper,
  13. RumResourceEventMapper? resourceEventMapper,
  14. RumErrorEventMapper? errorEventMapper,
  15. RumLongTaskEventMapper? longTaskEventMapper,
  16. Map<String, Object?> additionalConfig = const <String, Object>{},
})

Implementation

DatadogRumConfiguration({
  required this.applicationId,
  double sessionSamplingRate = 100.0,
  double traceSampleRate = 20.0,
  this.detectLongTasks = true,
  double longTaskThreshold = 0.1,
  this.trackFrustrations = true,
  this.vitalUpdateFrequency = VitalsFrequency.average,
  this.reportFlutterPerformance = false,
  this.customEndpoint,
  this.telemetrySampleRate = 20.0,
  this.viewEventMapper,
  this.actionEventMapper,
  this.resourceEventMapper,
  this.errorEventMapper,
  this.longTaskEventMapper,
  this.additionalConfig = const <String, Object>{},
})  : sessionSamplingRate = max(0, min(sessionSamplingRate, 100)),
      traceSampleRate = max(0, min(traceSampleRate, 100)),
      longTaskThreshold = max(0.02, longTaskThreshold);