Skip to content

fix(dynamic-sampling): Only query transaction volumes for projects that need balancing#120026

Merged
shellmayr merged 1 commit into
masterfrom
fix/ds-per-org-skip-unneeded-tx-volumes-query
Jul 20, 2026
Merged

fix(dynamic-sampling): Only query transaction volumes for projects that need balancing#120026
shellmayr merged 1 commit into
masterfrom
fix/ds-per-org-skip-unneeded-tx-volumes-query

Conversation

@shellmayr

@shellmayr shellmayr commented Jul 19, 2026

Copy link
Copy Markdown
Member

Contributes to TET-2721

run_transaction_balancing skips projects at a 100% sample rate, but their transaction volumes were still queried. Return a new ALL_PROJECTS_AT_FULL_SAMPLE_RATE status without querying when every project is at 100%, and otherwise narrow the root-project filter to the projects that will actually be balanced. The query scope stays org-wide because spans rooted in a balanced project can be owned by any project in the org.
@linear-code

linear-code Bot commented Jul 19, 2026

Copy link
Copy Markdown

TET-2721

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 19, 2026
@shellmayr
shellmayr marked this pull request as ready for review July 19, 2026 15:22
@shellmayr
shellmayr requested a review from a team as a code owner July 19, 2026 15:22
@shellmayr
shellmayr merged commit c0d069e into master Jul 20, 2026
66 of 67 checks passed
@shellmayr
shellmayr deleted the fix/ds-per-org-skip-unneeded-tx-volumes-query branch July 20, 2026 08:38
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