Skip to content

[DOCS] Stats avg duration now shows microseconds below 1ms #721

Closed

Description

Summary

The infer stats output changed in inference-gateway/cli#1267
(fixes inference-gateway/cli#1266): the Avg column for tool
calls now renders microseconds (e.g. 432us) when the mean duration is below 1ms,
instead of rounding everything under 1ms down to 0ms. The avg_ms field in
infer stats --format json can now be a fractional number instead of an integer. The
same change applies to the /stats shortcut (markdown and vertical views) and the
infer insights digest and report.

Affected pages: the telemetry/stats documentation (e.g. docs/telemetry.md and any
stats section of the docs site).

Acceptance Criteria

  • The stats documentation states that the Avg column shows microseconds below 1ms and milliseconds otherwise
  • If the stats JSON output is documented anywhere, note that avg_ms may now be fractional
  • Docs use plain hyphens only (no en/em dashes), per repo convention

Activity

  1. added
    documentation
    on Sep 22, 2026
  2. moved this to Todo in 2026on Sep 22, 2026
  3. added theissue type on Sep 22, 2026
  4. edenreich commented on Sep 22, 2026

    @edenreich
    Contributor

    @claude Can you work on this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Sep 22, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 1m 46s —— View job • docs/issue-721-20260922-1829 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-721-20260922-1829?quick_pull=1&title=Issue%20%23721%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23721%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Task: document microsecond Avg in stats docs

    • Gather context (stats docs live in cli.md, no dedicated telemetry.md)
    • Add Avg-column / avg_ms note to the infer stats and /stats sections
    • Run lint:md, format:check, build - all pass
    • Commit and open PR

    Changes

    Two edits in cli.md:

    • The infer stats telemetry bullet (Inspecting telemetry) now states the per-tool Avg column renders microseconds (e.g. 432us) below 1ms and milliseconds otherwise, that avg_ms in --format json can be fractional (e.g. 0.432), and that the same applies to infer insights and /stats.
    • The /stats bullet under Telemetry Shortcuts points at the same formatting for its markdown and vertical views.

    There is no dedicated telemetry.md page in this repo and the Avg column / avg_ms field were not previously documented anywhere, so this adds the note at the two places infer stats and /stats are described rather than introducing a new table or page. Plain hyphens only.

    PR: #722
    | Branch

  6. moved this from Todo to In progress in 2026on Sep 22, 2026
  7. moved this from In progress to QA in 2026on Sep 22, 2026
  8. moved this from QA to Done in 2026on Sep 22, 2026
  9. inference-gateway-releaser commented on Sep 23, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.15 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions