Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Extend ErrorTracker with error grouping #1014

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Pijukatel
Copy link
Contributor

@Pijukatel Pijukatel commented Feb 24, 2025

Description

Adds error grouping to ErrorTracker.
ErrorTracker can be configured to use different grouping options.

Based on JS implementation https://github.com/apify/crawlee/blob/master/packages/core/src/crawlers/error_tracker.ts#L286
Differences from JS implementation:

  • showErrorCode option not migrated -> does not make sense in Python.
  • showFullStack option not migrated -> is not used in JS, no point migrating unused stuff.
  • getMostPopularErrors migrated under different name get_most_common_errors

Issues

Partially implements: #151
(ErrorSnapshotter will be in separate PR)

TODO:
 Message matching and replacing with wildcards
 Extra args - full stack and full message
 Tests
Todo:
Add get_most_popular_errors
Add extended configuration parameters
TODO:
Add extended configuration parameters
Do not port option for full trace - not used in JS version.
@github-actions github-actions bot added this to the 109th sprint - Tooling team milestone Feb 24, 2025
@github-actions github-actions bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Feb 24, 2025
@Pijukatel Pijukatel marked this pull request as ready for review February 24, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant