BloomTelemetryEvent constructor

BloomTelemetryEvent({
  1. required String eventId,
  2. DateTime? timestamp,
  3. BloomErrorLevel level = BloomErrorLevel.error,
  4. required String exceptionType,
  5. required String message,
  6. String? stackTrace,
  7. List<String> fingerprint = const [],
  8. String? fingerprintHash,
  9. Map<String, dynamic> context = const {},
  10. List<BloomBreadcrumb> breadcrumbs = const [],
  11. Map<String, dynamic> app = const {},
  12. Map<String, dynamic> runtime = const {},
  13. Map<String, dynamic> device = const {},
})

Creates a BloomTelemetryEvent payload.

Implementation

BloomTelemetryEvent({
  required this.eventId,
  DateTime? timestamp,
  this.level = BloomErrorLevel.error,
  required this.exceptionType,
  required this.message,
  this.stackTrace,
  this.fingerprint = const [],
  this.fingerprintHash,
  this.context = const {},
  this.breadcrumbs = const [],
  this.app = const {},
  this.runtime = const {},
  this.device = const {},
}) : timestamp = timestamp ?? DateTime.now().toUtc();