mixle.telemetry.dashboard module¶
Summaries and markdown rendering for telemetry streams.
dashboard() folds telemetry events into per-kind counts, choice
distributions, per-unit cost and latency totals, and abstention rates.
render_dashboard() renders the same summary as plain markdown. The
implementation is a pure fold over Telemetry.events() and has no display
dependencies.
Each aggregated quantity is kept in its own unit. Dollars (outcome["cost"]
or outcome["spent"]) and seconds (outcome["latency"]) are separate
totals: adding a dollar to a second produces a number with no meaning, and
folding them into one accumulator also silently dropped whichever the event
carried second.
- dashboard(telemetry)[source]
Fold the telemetry stream into a receipt summary (see module docstring).