Skip to content

feat(telemetry): detach uploads and record command duration - #848

Merged
sechmann merged 4 commits into
mainfrom
fix/detach-telemetry
Nov 13, 2026
Merged

sechmann merged 4 commits into
mainfrom
fix/detach-telemetry

Conversation

@sechmann

Copy link
Copy Markdown
Contributor

Summary

Send telemetry uploads in a detached process so CLI commands do not wait for network I/O. Record command duration alongside usage, excluding telemetry upload time.

Changes

  • Telemetry (internal/metric, main.go): Add detached upload handling, upload timeouts, payload limits, and a trace mode that waits for uploads and reports failures.
  • Command metrics (internal/application): Record command duration and exclude shell completion; report unknown commands without including user-supplied text.
  • Tests and docs (*_test.go, README.md): Cover upload behavior and metric coverage; document best-effort delivery.

Notes

  • Uploads have a two-second timeout, no retries, and no persistent queue. Oversized payloads are dropped.

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

📝 Changelog preview

Below is a preview of the Changelog that will be added to the next release. Only commit messages that follow the Conventional Commits specification will be included in the Changelog.

v8.2.0 - 2026-11-13

Full Changelog: v8.1.0...v8.2.0

🚀 Features

  • Record command duration metric (d2ce867)

🐛 Bug Fixes

  • Detach telemetry uploads (5b3980d)
  • (metric) Suppress gosec false positive on telemetry upload (8c3014d)

⚙️ Miscellaneous Changes

  • Document telemetry in AGENTS.md (ace21bc)

@sechmann
sechmann force-pushed the fix/detach-telemetry branch from b732c3b to 8c3014d Compare November 13, 2026 13:29
@sechmann
sechmann merged commit a858fad into main Nov 13, 2026
22 checks passed
@sechmann
sechmann deleted the fix/detach-telemetry branch November 13, 2026 13:40
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