Add ChangesAccessLogger for structured logging of push checks

What does this MR do and why?

Add ChangesAccessLogger for structured logging of push checks

Introduce a logger class that instruments individual phases of ChangesAccess validation and emits structured JSON log lines with per-check durations.

References

How to set up and validate locally

  1. Enable the changes_access_logging feature flag
  2. Push changes to a project and look for logs in log/application_json.log from Gitlab::Checks::ChangesAccessLogger

MR acceptance checklist

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

Edited by Jerry Seto

Merge request reports

Loading