PackageTrack
Sign in Get early access

tokio-metrics

Runtime and task level metrics for Tokio applications.

0.5.1 47M downloads/mo #1276 most downloaded on crates.io tokio-rs/tokio-metrics

What this package is like to depend on

Last release 1 months ago

08 Jul 2026

Release timing varies

gaps range from 8 days to 1.1 years

Most releases are documented

notes for 17 of 19 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

19 releases · first in 2022

7 releases in the last 12 months

see the full history below

Release timeline

19 releases · Feb 2022 to Jul 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 19
  1. 0.5.1 08 Jul 2026
    Release notes

    Fixed

    • make PollTimeHistogram available without tokio_unstable (#131)

    Other

    • describe relation to Dial9 (#129)
    • replace version-pinned docs links in readme with latest (#125)
    • Update tokio-metrics dependency version to 0.5 (#124)
    Open source →
  2. 0.5.0 09 Apr 2026
    Release notes

    Breaking Changes

    • RuntimeMetrics::poll_time_histogram is now a PollTimeHistogram instead of Vec<u64>. Each bucket carries its duration range alongside the count. (#121)

    Added

    • Add metrique-integration feature to use RuntimeMetrics as a metrique unit of work (#121)

    Other

    • Fix doctests failing after Tokio v1.51 (#122)
    Open source →
  3. 0.4.9 23 Feb 2026
    Release notes

    Added

    • (task) Expose a static-friendly TaskMonitorCore without inner Arc (#115)

    Other

    • Fix doctest feature gates and relax rt requirement for task metrics reporter (#118)
    Open source →
  4. 0.4.8 16 Feb 2026
    Release notes

    Added

    • publicly export task TaskIntervals type (#112)

    Fixed

    • use saturating_sub to prevent overflow panics in runtime metrics (#114)
    Open source →
  5. 0.4.7 15 Jan 2026
    Release notes

    What's Changed

    • docs: fix typos in TaskMetrics (by @jkosh44 in #103)
    • rt: integrate derived metrics with metrics.rs (by jkosh44 in #104)
    • fix: indentation in task.rs (by @arielb1 in #105)
    • docs: update readme and crate documentation (by @jkosh44 in #107)
    • rt: make live_tasks_count (num_alive_tasks()) stable(by @MingweiSamuel in #108)
    • docs: move live_tasks_count to stable metrics in README (by @jlizen in #109)
    Open source →
    Release notes
    • docs: fix typos in TaskMetrics (#103)
    • rt: integrate derived metrics with metrics.rs (#104)
    • fix: indentation in task.rs (#105)
    • docs: update readme and crate documentation (#107)
    • rt: make live_tasks_count (num_alive_tasks()) stable(#108)
    • docs: move live_tasks_count to stable metrics in README (#109)
    Open source →
  6. 0.4.6 03 Dec 2025
    Release notes
    • add metrics_rs integration to task metrics (#100)
    • readme: add max_idle_duration to readme (#98)
    • readme: keep default features (#29)
    Open source →
  7. 0.4.5 06 Sep 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.4.4...v0.4.5

    Open source →
    Release notes
    • Add max_idle_duration (#95)
    Open source →
  8. 0.4.4 06 Aug 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.4.3...v0.4.4

    Open source →
    Release notes

    Added

    • fix: Add TaskIntervals struct (#91)
    • chore: update dev-dependencies (#92)
    Open source →
  9. 0.4.3 03 Jul 2025
    Release notes

    0.4.3 (July 3rd, 2025)

    Added

    • rt: partially stabilize RuntimeMonitor and related metrics (#87)
    Open source →
    Release notes

    Added

    • rt: partially stabilize RuntimeMonitor and related metrics (#87)
    Open source →
  10. 0.4.2 30 Apr 2025
    Release notes

    0.4.2 (April 30th, 2025)

    Fixed

    • docs: specify metrics-rs-integration feature dependency for relevant APIs (#78)

    • docs: fix links (#79)

    Open source →
    Release notes

    Fixed

    • docs: specify metrics-rs-integration feature dependency for relevant APIs (#78)
    • docs: fix links (#79)
    Open source →
  11. 0.4.1 21 Apr 2025
    Release notes

    0.4.1 (April 21st, 2025)

    Added

    • rt: add support for blocking_queue_depth, live_task_count, blocking_threads_count,

      idle_blocking_threads_count (#49, #74)

    • rt: add integration with metrics.rs, behind metrics-rs-integration feature flag (#68)

    Open source →
    Release notes

    Added

    • rt: add support for blocking_queue_depth, live_task_count, blocking_threads_count, idle_blocking_threads_count (#49, #74)
    • rt: add integration with metrics.rs (#68)
    Open source →
  12. 0.4.0 26 Nov 2024
    Release notes

    The core Tokio crate has renamed some of the metrics and this breaking release uses the new names. The minimum required Tokio is bumped to 1.41, and the MSRV is bumped to 1.70 to match.

    • runtime: use new names for poll time histogram (#66)
    • runtime: rename injection queue to global queue (#66)
    • doc: various doc fixes (#66, #65)
    Open source →
  13. 0.3.1 12 Oct 2023
    Release notes

    Fixed

    • task: fix doc error in idle definition (#54)
    • chore: support tokio 1.33 without stats feature (#55)
    Open source →
  14. 0.3.0 14 Aug 2023
    Release notes

    Added

    • rt: add support for mean task poll time (#50)
    • rt: add support for task poll count histogram (#52)
    Open source →
  15. 0.2.2 13 Apr 2023
    Release notes

    Added

    • task: add TaskMonitorBuilder (#46)

    Fixed

    • task: fix default long delay threshold (#46)
    Open source →
  16. 0.2.1 05 Apr 2023
    Release notes

    Added

    • task: add short and long delay metrics (#44)
    Open source →
  17. 0.2.0 06 Mar 2023
    Release notes

    Added

    • Add Debug implementations. (#28)
    • rt: add concrete RuntimeIntervals iterator type (#26)
    • rt: add budget_forced_yield_count metric (#39)
    • rt: add io_driver_ready_count metric (#40)
    • rt: add steal_operations metric (#37)
    • task: also instrument streams (#31)

    Documented

    • doc: fix count in TaskMonitor docstring (#24)
    • doc: the description of steal_count (#35)
    Open source →
  18. 0.1.0 18 Feb 2022

    Nothing published for this version

  19. 0.0.0 17 Feb 2022

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive