You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ac8686e
Browse filesBrowse the repository at this point in the historyBrowse files
telemetry: send the install id with the plugin version search
The API already tracks plugin version searches in Mixpanel, but with a
fresh id per event. Sending the install id (X-Codify-Install-Id, only
while telemetry is on) lets those events count per install too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QnBk3jcWWemxdBkVpmxmN
-**Events**: `command_completed` (`BaseCommand.trackCompleted`, called by each command before `process.exit` and by `catch`), `resource_outcome` (one per applied resource, `RunStats.recordApplyResult`) and `prompt_session_completed` (`ToolHost.stats`). `RunStats.recordPlan` collects resource type counts during plan/apply/destroy.
302
302
-**Never sent**: config contents, parameter values, resource names, file paths, error messages, prompt text. Resource types of non-official plugins are sent as `custom`; errors only as `error.name` (must be set explicitly, class names don't survive minification) and `PluginErrorData.errorType`; flags only as names.
303
-
-**Identity**: a random install id in `~/.codify/telemetry.json`. The CLI never sends a user id: the API reads it from the verified access token and stores it as a plain property (no Mixpanel identity merge).
303
+
-**Identity**: a random install id in `~/.codify/telemetry.json`. Also sent as `X-Codify-Install-Id` with the plugin version search (`telemetry.installIdHeader()`, `ApiClient.searchPlugins`), so the API's own plugin events count per install; omitted when telemetry is off. The CLI never sends a user id: the API reads it from the verified access token and stores it as a plain property (no Mixpanel identity merge).
304
304
-**Opt out**: `codify telemetry disable`, `DO_NOT_TRACK=1`, `CODIFY_TELEMETRY_DISABLED=1` (also set in `codify test` VMs). Off under Vitest. `CODIFY_TELEMETRY_DEBUG=1` prints events to stderr instead of sending them. The notice is printed once, to stderr.
305
305
- A new field must be added to the API's schema (`workers/api/src/telemetry/schemas.ts`) too, or it is dropped.
0 commit comments