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(dynamic-sampling): adding org option for target sample rate #79090

Merged

Conversation

constantinius
Copy link
Contributor

@constantinius constantinius commented Oct 15, 2024

Closes https://github.com/getsentry/projects/issues/203

Adds new org level option for "targetSampleRate"/"sentry:target_sample_rate" with a default value from the constant TARGET_SAMPLE_RATE_DEFAULT.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 15, 2024
@constantinius constantinius requested a review from a team October 15, 2024 09:22
@vgrozdanic
Copy link
Member

Can you also add a test that would check that this options is returned from the endpoint?

Some of the existing tests can be extended in: tests/sentry/api/endpoints/test_organization_details.py

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #79090      +/-   ##
==========================================
- Coverage   78.34%   78.32%   -0.03%     
==========================================
  Files        7125     7134       +9     
  Lines      314477   314243     -234     
  Branches    51356    51308      -48     
==========================================
- Hits       246384   246117     -267     
- Misses      61650    61681      +31     
- Partials     6443     6445       +2     

@constantinius constantinius enabled auto-merge (squash) October 17, 2024 08:23
@constantinius constantinius requested review from a team and removed request for a team October 17, 2024 08:24
@constantinius constantinius requested review from a team and removed request for a team October 17, 2024 08:57
Copy link
Member

@shellmayr shellmayr left a comment

Choose a reason for hiding this comment

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

LGTM

@constantinius constantinius merged commit 864d18a into master Oct 17, 2024
50 checks passed
@constantinius constantinius deleted the constantinius/feat/org-option-target-sample-rate branch October 17, 2024 11:55
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.

3 participants