ErrorTracker
Index
Methods
Properties
Methods
__init__
Parameters
optionalkeyword-onlysnapshot_kvs_name: str | None = None
optionalkeyword-onlyshow_error_name: bool = True
optionalkeyword-onlyshow_file_and_line_number: bool = True
optionalkeyword-onlyshow_error_message: bool = True
optionalkeyword-onlyshow_full_message: bool = False
optionalkeyword-onlysave_error_snapshots: bool = False
Returns None
add
Add an error in the statistics.
Parameters
error: Exception
Error to be added to statistics.
optionalkeyword-onlycontext: BasicCrawlingContext | None = None
Context used to collect error snapshot.
optionalkeyword-onlyearly: bool = False
Flag indicating that the error is added earlier than usual to have access to resources that will be closed before normal error collection. This prevents double reporting during normal error collection.
Returns None
get_most_common_errors
Return n most common errors.
Parameters
optionaln: int = 3
Returns list[tuple[str | None, int]]
Properties
total
Total number of errors.
unique_error_count
Number of distinct kinds of errors.
Track errors and aggregates their counts by similarity.