Skip to content

ref(dynamic-sampling): Remove Manual Mode and rebalance orgs through the per-org pipeline - #124006

Merged
shellmayr merged 2 commits into
masterfrom
shellmayr/ref/ds-org-details-per-org
Sep 10, 2026
Merged

ref(dynamic-sampling): Remove Manual Mode and rebalance orgs through the per-org pipeline#124006
shellmayr merged 2 commits into
masterfrom
shellmayr/ref/ds-org-details-per-org

Conversation

@shellmayr

@shellmayr shellmayr commented Sep 10, 2026

Copy link
Copy Markdown
Member
  • The organization details endpoint was the last caller of the legacy project balancing. It seeded project rates from 30 days of generic metrics on a switch to Manual Mode, and ran the legacy per-org rebalancing task on a target rate change.
  • Remove the option to use manual mode
  • A target rate change now schedules the per-org calculation for that organization, so the endpoint no longer reads generic metrics.
  • The frontend switch is removed in a separate PR.

Contributes to TET-2900

…he per-org pipeline

The organization details endpoint was the last caller of the legacy project balancing:
it seeded project rates from 30 days of generic metrics on a switch to Manual Mode, and
ran the legacy per-org rebalancing task on a target rate change.

Close Manual Mode instead. A request to enter it is rejected, so every AM3 organization
that is not already in it samples at the organization level, which is the default. An
organization already in Manual Mode keeps it until it switches back. A target rate
change now schedules the per-org calculation for that organization, so the endpoint no
longer reads generic metrics.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Sep 10, 2026

Copy link
Copy Markdown

TET-2900

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 10, 2026
@shellmayr shellmayr changed the title ref(dynamic-sampling): Close Manual Mode and rebalance orgs through the per-org pipeline ref(dynamic-sampling): Remove Manual Mode and rebalance orgs through the per-org pipeline Sep 10, 2026
@shellmayr
shellmayr marked this pull request as ready for review September 10, 2026 09:19
@shellmayr
shellmayr requested a review from a team as a code owner September 10, 2026 09:19

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 78e2981. Configure here.

Comment thread src/sentry/core/endpoints/organization_details.py
Comment thread src/sentry/core/endpoints/organization_details.py
@shellmayr
shellmayr requested a review from a team September 10, 2026 09:26
@shellmayr
shellmayr merged commit 0269886 into master Sep 10, 2026
69 checks passed
@shellmayr
shellmayr deleted the shellmayr/ref/ds-org-details-per-org branch September 10, 2026 10:07
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.

2 participants