cody
cody copied to clipboard
Telemetry: Record installation events for all non-Web clients
CLOSE https://linear.app/sourcegraph/issue/CODY-49/bug-v2-telemetry-for-cody-installations-not-being-fired
I think this might have already been fixed when we update the clientCapabilities().isCodyWeb check to returns false when agentIDE is not set to CodyIDE.Web. Before that change, clientCapabilities().isCodyWeb would always returns true for all IDEs.
We can confirm by enabling E2E tests for logging the installed event and installing Cody in a new machine.
Test plan
- Green CI to confirm the
cody.extension:installedevents are now being logged. - In a new machine, confirm the
cody.extension:installedevents is logged:
█ telemetry-v2: recordEvent: cody.extension/installed {
"parameters": {
"version": 0,
"billingMetadata": {
"product": "cody",
"category": "billable"
}
},
"timestamp": "2024-10-01T16:35:14.262Z"
}
NOTE: The installed event does not fire for users who uninstalled then re-install Cody.