Log duration for various methods in AuthorizedProjectsWorker
What does this MR do and why?
-
We are experiencing issues with the
AuthorizedProjectsWorker, especially around how long each request is taking. -
The worker calls
Users::RefreshAuthorizedProjectsServiceto calculate which records in theproject_authorizationstable need to be refreshed and saves those changes. -
This MR adds
durationstats to the different steps in this service to figure out which part of the codebase needs to be optimised. -
No
changelogneeded since it's a developer facing change
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #484754 (closed)
Edited by Hinam Mehra