Excusez-nous — cette page est actuellement disponible en anglais uniquement.
La traduction française n'est pas encore prête. Le contenu ci-dessous est la version anglaise la plus récente.
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.