Skip to content

feat(grouping): Add feature flag and sample rate for split enhancements #90679

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

Draft
wants to merge 3 commits into
base: kmclb-add-ability-to-use-split-enhancement-rules
Choose a base branch
from

Conversation

lobsterkatie
Copy link
Member

This adds both a feature flag (organizations:run-split-enhancements) and a sample rate option (grouping.split_enhancements.sample_rate) to control the running of split enhancements. It also adds a helper, get_enhancements_version, which uses the two to determine if the enhancements created should be version 2 (the current version, with no split enhancements) or version 3 (the new version, which does have them). Finally, it calls the helper when loading enhancements from project options, so that once orgs are opted in and the sample rate is set to something other than 0, the experiment will be enabled.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 30, 2025
Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/grouping/enhancer/__init__.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@                                 Coverage Diff                                  @@
##           kmclb-add-ability-to-use-split-enhancement-rules   #90679      +/-   ##
====================================================================================
+ Coverage                                             87.55%   87.85%   +0.30%     
====================================================================================
  Files                                                 10261    10261              
  Lines                                                580801   580814      +13     
  Branches                                              22561    22561              
====================================================================================
+ Hits                                                 508496   510261    +1765     
+ Misses                                                71872    70120    -1752     
  Partials                                                433      433              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant