Add a QueryRecorder for Gitaly calls
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Right now, we're only counting the number of Gitaly calls in the request store to raise errors if a request exceeds a certain limit.
We can leverage that in specs already, but it's quite cumbersome.
We should add a GitalyCallRecorder
with a set of matchers that keeps track of Gitaly calls in specs so we can count calls and compare calls so we can avoid N+1s in unit tests.
Edited by 🤖 GitLab Bot 🤖