Skip to content

fix(telemetry): count bundled uploads in the anonymous aggregate - #159

Merged
pmaxhogan merged 1 commit into
mainfrom
fix/telemetry-bundle-upload-count
Jul 25, 2026
Merged

pmaxhogan merged 1 commit into
mainfrom
fix/telemetry-bundle-upload-count

Conversation

@pmaxhogan

Copy link
Copy Markdown
Owner

Summary

  • telemetry_events_since counted only upload_done rows via COUNT(*), so bundle_upload rows (N member files each) were invisible to anonymous telemetry - the same undercount class feat(ui): files-uploaded stat card with sparkline and smoother Activity load-in #157 fixed for the dashboard summary and throughput series.
  • Now uses the shared upload-row definition: event_type IN ('upload_done','bundle_upload') with SUM(COALESCE(file_count, 1)) for files; bytes sum both types.
  • .sqlx offline cache regenerated (just sqlx-prepare steps).

Testing

  • Extended telemetry_events_since_aggregates_uploads_errors_and_deep_verify with in-window, pre-window, and future-dated bundle_upload rows (in-window bundle of 5 files counts as 5; window bounds still apply).
  • cargo test -p driven-core --lib telemetry test green; cargo test -p driven-app --lib telemetry 31/31; clippy clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JLB3E2Jm7knNJd37fVpH8X

telemetry_events_since counted only upload_done rows via COUNT(*), so a
bundle_upload row (one row, N member files, the packed object's bytes)
was invisible to telemetry - the same undercount #157 fixed for the
dashboard summary and throughput series. Align on the shared upload-row
definition: event_type IN ('upload_done','bundle_upload') with
SUM(COALESCE(file_count, 1)) for files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JLB3E2Jm7knNJd37fVpH8X
@github-actions

Copy link
Copy Markdown
Contributor

Coverage

Area main this PR delta
Rust (lib crates) 79.67% 79.67% +0.00 (OK)
UI (vue/ts) 91.02% 91.02% +0.00 (OK)

Gate: passed - no coverage regression (epsilon 0.1 pp).

@pmaxhogan
pmaxhogan merged commit 11af7ea into main Jul 25, 2026
18 checks passed
@pmaxhogan
pmaxhogan deleted the fix/telemetry-bundle-upload-count branch July 25, 2026 16:48
@github-project-automation github-project-automation Bot moved this from Todo to Done in Driven Jul 25, 2026
pmaxhogan added a commit that referenced this pull request Jul 25, 2026
🤖 I have created a release *beep* *boop*
---


## [2.3.0](v2.2.0...v2.3.0)
(2026-07-25)


### Features

* **core:** record a backup_done activity row when a run completes
([#160](#160))
([90cde5c](90cde5c))
* **ui:** files-uploaded stat card with sparkline and smoother Activity
load-in ([#157](#157))
([2d85c99](2d85c99))
* **ui:** live streaming folder-tree preview for the exclusion editor
([#158](#158))
([47ebe14](47ebe14))


### Bug Fixes

* **telemetry:** count bundled uploads in the anonymous aggregate
([#159](#159))
([11af7ea](11af7ea))
* **ui:** label bundle_upload and hook activity event types
([#154](#154))
([2998c76](2998c76))
* **ui:** make the backing-up bar a true determinate progress bar
([#155](#155))
([eed80a6](eed80a6))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant