-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-enhancementCategory: A PR with an enhancement or bugfix.Category: A PR with an enhancement or bugfix.M-metricsModule: tokio/runtime/metricsModule: tokio/runtime/metrics
Description
Tracks the stabilization of runtime statistics.
Roadmap
- Release current implementation as unstable to crates.io (chore: prepare Tokio v1.11.0 #4083)
- Polish docs (remove TODO)
- Add more counters
- Write
tokio-metrics
providing a higher level api to be consumed that is easier to understand. - Resolve open questions.
- Validate design by evaluating users' experience reports.
Open questions
- Naming: Should the type be named
Metrics
,Stats
, orPerfCounters
. - Should
RuntimeStats::workers()
return&[WorkerStats]
or an iterator. - Should there be a feature flag to enable stats explicitly?
- Should there be a runtime Builder option to enable / disable stats.
- Builder API for more complex configurations, like histograms (rt: instrument task poll times with a histogram #5685).
inc_budget_forced_yield_count
should become a per-worker metric.- Should some current counters be lowered to internal counters?
- steal_count
- steal_operations
- overflow_count
Additional counters
- Duration between last two polls.
- There are open questions related to how this should be used.
- Worker queue depth
- It is unclear how this should be tracked.
elihunter173
Metadata
Metadata
Assignees
Labels
A-tokioArea: The main tokio crateArea: The main tokio crateC-enhancementCategory: A PR with an enhancement or bugfix.Category: A PR with an enhancement or bugfix.M-metricsModule: tokio/runtime/metricsModule: tokio/runtime/metrics