Skip to content

Log diffs_files_count when MR diffs and commit are accessed

Patrick Bajao requested to merge 433999-log-diff-size into master

What does this MR do and why?

To be able to give an estimate on how much storage we are going to use when we cache diffs HTML, we need to get some data on how many files are there in diffs.

We add this logging metadata to MergeRequestsController#diffs and CommitController#show actions since those are the actions that we want to track.

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 #433999 (closed)

Merge request reports