Skip to content

fix: complete telemetry enrichment (install_method + tokens_saved)#472

Merged
pszymkowiak merged 1 commit intomasterfrom
develop
Mar 10, 2026
Merged

fix: complete telemetry enrichment (install_method + tokens_saved)#472
pszymkowiak merged 1 commit intomasterfrom
develop

Conversation

@pszymkowiak
Copy link
Collaborator

Summary

  • Restore install_method detection (homebrew/cargo/script/nix/other) in telemetry pings
  • Add tokens_saved_24h and tokens_saved_total fields to telemetry payload
  • Add Tracker::total_tokens_saved() and Tracker::tokens_saved_24h() methods
  • Both were lost during develop→master rebase of commit cc3fb6c

Changed files

  • src/telemetry.rs — install_method + tokens_saved in payload, 6 tests
  • src/tracking.rs — 2 new query methods for token savings

Test plan

  • cargo test telemetry — 6/6 pass
  • cargo test — 766 pass
  • Live telemetry ping verified (204 accepted by server)
  • Stats endpoint confirms install_method and payload received

* chore(master): release 0.28.1 (#466)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix: add tokens_saved_24h and tokens_saved_total to telemetry payload

Re-add Tracker::total_tokens_saved() and Tracker::tokens_saved_24h()
methods lost during develop→master rebase. Telemetry pings now include
actual token savings data alongside the existing install_method field.

Signed-off-by: Patrick szymkowiak <patrick.szymkowiak@innovtech.eu>

---------

Signed-off-by: Patrick szymkowiak <patrick.szymkowiak@innovtech.eu>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@pszymkowiak pszymkowiak merged commit f8b7d52 into master Mar 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant