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: throttled tx metrics #16130

Merged
merged 11 commits into from
Oct 25, 2024
Prev Previous commit
Next Next commit
Merge branch 'develop' into 16035-throttled-tx-metrics
Signed-off-by: Kim Rader <kim.rader@swirldslabs.com>
  • Loading branch information
kimbor authored Oct 25, 2024
commit af07b2d7df70a693e845750f597145e0c59eac54
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public void handleQuery(@NonNull final Bytes requestBuffer, @NonNull final Buffe
handler.validate(context);

// 5. Check query throttles
if (shouldCharge && synchronizedThrottleAccumulator.shouldThrottle(function, query, payerID)) {
if (shouldCharge && synchronizedThrottleAccumulator.shouldThrottle(function, query, state, payerID)) {
workflowMetrics.incrementThrottled(function);
throw new PreCheckException(BUSY);
}
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.