github-actions[bot] opened a new pull request, #54404: URL: https://github.com/apache/airflow/pull/54404
Skips recording span and metrics in the scheduler when tracing or metrics are disabled. This avoids unnecessary function calls and improves efficiency. Changes Made: - Added functions to check config values - Used these helpers to avoid computing span and pool metrics in _run_scheduler_loop when not needed (cherry picked from commit 67f55654b5f7bb3c347beebbba10bdac40a975f1) Co-authored-by: Shlomit-B <[email protected]> closes: #53405 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
