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

Adds limit for nested dict stats computation #421

Closed
wants to merge 5 commits into from

Conversation

mrwbarg
Copy link
Contributor

@mrwbarg mrwbarg commented Sep 25, 2023

Closes #416
Adds a setting to limit how deep the coverage is computed for nested dicts.

@curita curita mentioned this pull request Oct 10, 2023
@curita
Copy link
Member

curita commented Nov 27, 2023

The CI issues have been fixed 🙏 Could you rebase/merge the latest changes from master? @mrwbarg

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (377c4ab) 79.39% compared to head (1281600) 79.42%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #421      +/-   ##
==========================================
+ Coverage   79.39%   79.42%   +0.03%     
==========================================
  Files          76       76              
  Lines        3222     3228       +6     
  Branches      534      536       +2     
==========================================
+ Hits         2558     2564       +6     
  Misses        593      593              
  Partials       71       71              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@curita
Copy link
Member

curita commented Jan 10, 2024

@Gallaecio @rennerocha could you check on this PR? It's ready to be reviewed.

Copy link
Member

@Gallaecio Gallaecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is OK by me. However, I wonder if we should consider making the default -1 for no-limit, and make 0 cause this:

      'spidermon_item_scraped_count/dict': 2
      'spidermon_item_scraped_count/dict/field1': 2
      'spidermon_item_scraped_count/dict/field2': 2
      'spidermon_item_scraped_count/dict/field3': 1
      'spidermon_item_scraped_count/dict/field4': 1

@VMRuiz
Copy link
Collaborator

VMRuiz commented Mar 8, 2024

Can we close this in favor of #433 ?

@Gallaecio Gallaecio closed this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support restricting the coverage monitor fields
5 participants