Draft: fix: Calculate replication lag only when replication is enabled
What does this MR do and why?
It allows replication lag to be calculated only when replication is enabled, avoiding wasteful operations and misleading information being displayed.
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.
How to set up and validate locally
WIP
Edited by Natanael Silva