Skip to content

Document how users compute dollar cost from persisted token telemetry #7230

Closed

Description

@fullsend-ai-retro

What happened

PR #6938 (merged 2026-09-10) persists token-count telemetry for cancelled runs but not dollar cost. The follow-up attempt to also persist total_cost_usd (PR #7208) was closed unmerged, with the author's closing rationale explicitly stating that total_cost_usd is a non-authoritative list-price estimate and that users should compute their own dollar cost from the now-persisted token counts using their own contracted rates.

What could go better

A follow-up search of docs/guides found an existing 'Cost data contract' section in docs/guides/infrastructure/distributed-tracing.md that correctly states fullsend does not calculate or backfill cost from tokens, and a similar caveat in docs/guides/user/tracing-with-mlflow.md — but neither, nor any other doc found, explains which persisted token fields to use (e.g., input/output vs. cache-read vs. cache-creation tokens) or shows an example computation. The PR #7208 closing decision assumes users will self-serve this calculation, but as of this retro no doc supports that. I'm confident this gap exists (checked the two most relevant existing docs directly) but have not surveyed every guide in the repo, so there is a small chance a doc I didn't find already covers this.

Proposed change

Add a short 'Computing dollar cost from token telemetry' subsection near the existing 'Cost data contract' section in docs/guides/infrastructure/distributed-tracing.md (or a new docs/guides/user page if that's a better fit), listing the specific persisted token fields (input, output, cache-read, cache-creation) and a worked example multiplying by a hypothetical contracted per-token rate, with a note that these are the same fields introduced by PR #6938.

Validation criteria

The doc is merged and linked from the existing 'Cost data contract' section. Track whether the next 2 user questions (support channel, issue, or Slack) asking 'how do I get dollar cost for a cancelled run' can be answered by linking this doc rather than an ad hoc explanation.


Generated by retro agent from #7208

Activity

  1. added
    ready-for-triage
    on Sep 11, 2026
  2. fullsend-ai-triage commented on Sep 11, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 12:05 PM UTC · Completed 12:09 PM UTC

    Commit: 25d0852 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.38

  3. self-assigned this
    on Sep 11, 2026
  4. added
    type/chore
    component/docs
    priority/low
    ready-to-code
    on Sep 11, 2026
  5. fullsend-ai-triage commented on Sep 11, 2026

    @fullsend-ai-triage

    Verified the described gap directly: the 'Cost data contract' section in docs/guides/infrastructure/distributed-tracing.md documents the persisted token fields and states fullsend performs no token-to-cost calculation, but stops short of a worked example. No open PR references or closes this issue, and it is distinct from the sibling issue #7229 (which covers documenting OpenShell's signal contract in an ADR, a separate concern from the same retro run).

    Recommended placement: a new subsection directly after 'Cost data contract' in distributed-tracing.md, cross-linked from that section, listing the four persisted per-iteration token fields and a worked example against a hypothetical contracted rate.


    Labels: Matches the repo's established pattern for retro-agent-filed doc-currency gaps (e.g. #6987, #6941): a low-priority, non-bug documentation chore scoped to docs/guides.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  6. fullsend-ai-coder commented on Sep 11, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 12:11 PM UTC · Completed 12:19 PM UTC

    Commit: 25d0852 · View workflow run →

    Runtime: pi · Model: xai/grok-4.6 · Effort: high · Cost: $3.22

  7. added 5 commits that reference this issue on Sep 11, 2026
  8. added a commit that references this issue on Sep 29, 2026
  9. added 3 commits that reference this issue on Oct 22, 2026
  10. added a commit that references this issue on Oct 23, 2026
  11. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component/docsdocumentationpriority/lowready-for-triageready-to-codetype/chore

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions