BloomTelemetryEvent class

A complete structured crash / telemetry event payload.

Encapsulates exception details, stack traces, breadcrumb trails, environment tags, and device metadata.

Example:

final event = BloomTelemetryEvent(
  eventId: 'err_123',
  exceptionType: 'NetworkException',
  message: 'Connection timeout',
);

Constructors

BloomTelemetryEvent({required String eventId, DateTime? timestamp, BloomErrorLevel level = BloomErrorLevel.error, required String exceptionType, required String message, String? stackTrace, List<String> fingerprint = const [], String? fingerprintHash, Map<String, dynamic> context = const {}, List<BloomBreadcrumb> breadcrumbs = const [], Map<String, dynamic> app = const {}, Map<String, dynamic> runtime = const {}, Map<String, dynamic> device = const {}})
Creates a BloomTelemetryEvent payload.
BloomTelemetryEvent.fromJson(Map<String, dynamic> json)
Constructs a BloomTelemetryEvent from a JSON json map.
factory

Properties

app Map<String, dynamic>
Application metadata map.
final
Chronological list of breadcrumbs leading up to the error.
final
context Map<String, dynamic>
Additional custom context parameters.
final
device Map<String, dynamic>
Device / OS metadata map.
final
eventId String
Unique event ID.
final
exceptionType String
Exception class name or error type.
final
fingerprint List<String>
Grouping fingerprint tokens.
final
fingerprintHash String?
SHA-256 hash computed from fingerprint.
final
hashCode int
The hash code for this object.
no setterinherited
level BloomErrorLevel
Severity level.
final
message String
Exception or error message.
final
runtime Map<String, dynamic>
Bloom / Flutter runtime metadata map.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace String?
Formatted stack trace string.
final
timestamp DateTime
UTC timestamp when the event occurred.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFormattedJson() String
Serializes the event to formatted, indented JSON.
toJson() Map<String, dynamic>
Serializes the event to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited