Skip to content

Conversation

@github-actions
Copy link

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 67f5565)

Co-authored-by: Shlomit-B 76184325+Shlomit-B@users.noreply.github.com
closes: #53405

…54075)

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 67f5565)

Co-authored-by: Shlomit-B <76184325+Shlomit-B@users.noreply.github.com>
closes: #53405
@ashb ashb marked this pull request as ready for review August 12, 2025 10:40
@ashb ashb requested a review from XD-DENG as a code owner August 12, 2025 10:40
@ashb ashb merged commit 27cf1cc into v3-0-test Aug 12, 2025
48 checks passed
@ashb ashb deleted the backport-67f5565-v3-0-test branch August 12, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants