argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
16.45k stars 4.97k forks source link

Add more timing information into reconciliation log #18217

Open andrii-korotkov-verkada opened 2 weeks ago

andrii-korotkov-verkada commented 2 weeks ago

Summary

There's a log "Reconciliation completed" that includes some timing information, like git_ms and patch_ms. However, quite often the total time time_ms is several times larger than a sum of existing breakdowns, indicating that some slow steps are not being timed. It would be great to have a more detailed breakdown.

Motivation

Have a more detailed breakdown of time spent on reconciliation.

Proposal

Add more timing tracking, perhaps using TimingStats and its addCheckpoint.