Skip to main content

Module error_identifier

Module error_identifier 

Source

Constantsยง

PART_SEPARATOR ๐Ÿ”’
Frames the parts of an identifier. The stored error_variants.exact_error_identifier values were computed with it and its meaning is documented in that columnโ€™s comment, so it cannot change without orphaning every row.

Staticsยง

BUNDLER_HASH_RE ๐Ÿ”’
HEX_ADDR_RE ๐Ÿ”’
LONG_NUMBER_RE ๐Ÿ”’
TIMESTAMP_RE ๐Ÿ”’
UUID_RE ๐Ÿ”’

Functionsยง

calculate_error_grouping_identifier
Computes a stable BLAKE3 identifier for broadly grouping related errors.
calculate_exact_error_identifier
Computes a stable BLAKE3 identifier for an exact error variant.
canonicalize_grouping_message
hash_identifier ๐Ÿ”’
Digests parts framed by PART_SEPARATOR, dropping the separator wherever a part contains it itself.
normalize_message
Normalizes dynamic values out of an error message so that errors with different UUIDs, addresses, or IDs still hash to the same identifier.
normalize_stack_trace
Normalizes a stack trace: strips dynamic addresses and bundler hashes, and trims each line.