Skip to content

Measure the first run: setup, login and first-audit telemetry, install source #1194

Closed

Description

@nc9

We can't see where the first run stalls: squirrel setup and login send no telemetry, telemetry is never tied to an account, and the install channel stamped by install.sh never reaches the registration call (self install skips startup extras, so registration runs on the next command where SQUIRREL_INSTALL_SOURCE is gone and the source falls back to binary).

Add first-run telemetry (no URLs, hosts, paths or emails; nothing sent when telemetry is off) and make the install source stick. Tracked internally.

Acceptance Criteria

  • squirrel setup sends setup_started, one setup_step per step (step and outcome only), and setup_completed.
  • A completed squirrel auth login sends login_completed.
  • The first audit on an install sends first_audit_ok, or first_audit_failed with a bounded failure class, once; no URL or host.
  • With a login session, telemetry requests carry the session token so the API attributes the user. Env API keys are never sent to telemetry.
  • With NO_TELEMETRY or telemetry=false, none of these events (and no install registration) is sent.
  • SQUIRREL_INSTALL_SOURCE is validated against ^[a-z0-9-]{1,32}$ (otherwise dropped), persisted at squirrel self install, and sent as source on registration.
  • Docs telemetry page lists the new events and says the user id is attached after login and nothing is sent when telemetry is off.

Activity

  1. added
    enhancement
    size: M
    on Oct 27, 2026
  2. added 18 commits that reference this issue on Oct 27, 2026
  3. added a commit that references this issue on Oct 27, 2026
    1e18378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsize: M

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions