cody icon indicating copy to clipboard operation
cody copied to clipboard

Telemetry: Record installation events for all non-Web clients

Open abeatrix opened this issue 1 year ago • 1 comments

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

  1. Green CI to confirm the cody.extension:installed events are now being logged.
  2. In a new machine, confirm the cody.extension:installed events is logged:

image

█ 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.

Changelog

abeatrix avatar Sep 30 '24 23:09 abeatrix