DatadogRumConfiguration constructor
DatadogRumConfiguration({
- required String applicationId,
- double sessionSamplingRate = 100.0,
- double traceSampleRate = 20.0,
- bool detectLongTasks = true,
- double longTaskThreshold = 0.1,
- bool trackFrustrations = true,
- VitalsFrequency? vitalUpdateFrequency = VitalsFrequency.average,
- bool reportFlutterPerformance = false,
- String? customEndpoint,
- double telemetrySampleRate = 20.0,
- RumViewEventMapper? viewEventMapper,
- RumActionEventMapper? actionEventMapper,
- RumResourceEventMapper? resourceEventMapper,
- RumErrorEventMapper? errorEventMapper,
- RumLongTaskEventMapper? longTaskEventMapper,
- 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);