BloomCrashFingerprint class
Utilities for calculating deterministic crash grouping fingerprints.
Normalizes dynamic data (UUIDs, hex addresses, numeric IDs) and extracts user-space stack frames to group identical root-cause errors together in telemetry backends.
Example:
final tokens = BloomCrashFingerprint.compute(
exceptionType: 'FormatException',
message: 'Invalid UUID: 123e4567-e89b-12d3-a456-426614174000',
);
final hash = BloomCrashFingerprint.hashTokens(tokens);
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
compute(
{required String exceptionType, required String message, String? stackTrace, List< String> ? customFingerprint}) → List<String> - Computes a deterministic list of fingerprint tokens and SHA-256 hash.
-
hashTokens(
List< String> tokens) → String -
Calculates a SHA-256 hex string from the fingerprint
tokens. -
sanitizeMessage(
String message) → String - Normalizes dynamic tokens (UUIDs, hex addresses, integers) in error messages.