Version: 1.1.1
Last Updated: March 30, 2026
Commands
branchpy telemetry mode --showβ display current mode.branchpy telemetry mode manual|auto|offβ set mode (default manual).branchpy telemetry statsβ show event counts from local storage (reads JSONL files directly).branchpy telemetry inspect [--last N] [--store core|sessions|all] [--event-type TEXT]β inspect raw events.branchpy telemetry preview [--from 2h] [--json] [--full]β inspect package without writing.branchpy telemetry export --output rc-metrics.json [--from 2h]β write sanitized package.branchpy telemetry upload --file rc-metrics.jsonβ upload existing package.branchpy telemetry upload --auto [--from 24h] [--dry-run] [--endpoint URL]β build + send.
Storage Locations (canonical for pre-release)
Core command metadata (branchpy.core.telemetry):
- Windows:
%LOCALAPPDATA%\BranchPy\cache\telemetry.jsonl - Linux/Mac:
~/.BranchPy/cache/telemetry.jsonl
Session/structured events (branchpy.telemetry.local_writer):
- Windows:
%LOCALAPPDATA%\BranchPy\logs\telemetry\telemetry_<ts>.jsonl - Linux/Mac:
~/.branchpy/logs/telemetry/telemetry_<ts>.jsonl - Legacy/project-local fallback:
<project>/.branchpy/logs/telemetry/
VS Code events:
- Windows:
%APPDATA%\Code\User\globalStorage\branchpy-team.branchpy\telemetry\*.jsonl - Analogous macOS/Linux paths.
Note:
Phase3TelemetryHandleris an in-memory aggregation layer only β its persistence path is not yet implemented. JSONL files above are the authoritative durable store for the pre-release.
Modes & Defaults
- Default mode:
manual - Default time window:
--from 2h - Auto upload interval: 24h (auto mode only)
- Upload size cap: 5MB (config)
- Cache sampling: 100% (can be reduced via env)
API Endpoints (rc-backend)
POST /api/telemetry/uploadβ ingest packageGET /api/telemetry/statsβ summary totalsGET /api/telemetry/eventsβ filtered eventsGET /api/telemetry/aggregate/category|source|timelineβ chartsGET /api/telemetry/errors/recent|sloβ error viewsGET /api/telemetry/sessionsβ session analyticsGET /api/telemetry/healthβ health check
Safety Checks
- No auto-send in manual mode; auto requires explicit opt-in.
- Paths and error messages hashed; no content stored.
- Preview/dry-run recommended before uploads.