You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Fixed the thread count calculation in mofa-monitoring. This ensures that system metrics accurately reflect the number of active threads in the process, which is essential for the 'Cognitive Observatory' monitoring goals (Idea 2). (Fixes #1201)
Addressing Issue #1201. This PR fixes an incorrect thread_count calculation in mofa-monitoring by correctly handling the task-set length instead of misusing Option::iter().count(). This ensures accurate system metrics in the 'Cognitive Observatory' (GSoC Idea #2), which is vital for production monitoring and performance tuning. 📊
Checks are green on this PR now. It is a small mofa-monitoring correctness fix for thread_count, which felt like a practical fit for the Cognitive Observatory / monitoring track in the GSoC 2026 ideas list. Happy to adjust naming or metric-contract details if maintainers would prefer a different shape here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes incorrect thread_count calculation in mofa-monitoring system metrics collection.
What changed:
Why this aligns with GSoC idea:
Closes #1201