Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log "tier" telemetry in all Cody JetBrains events #2467

Closed
Tracked by #59948
chenkc805 opened this issue Dec 22, 2023 · 2 comments
Closed
Tracked by #59948

Log "tier" telemetry in all Cody JetBrains events #2467

chenkc805 opened this issue Dec 22, 2023 · 2 comments
Assignees
Labels

Comments

@chenkc805
Copy link
Contributor

chenkc805 commented Dec 22, 2023

Purpose:

  • To track the number of "mDAU", or monetized DAU (pro + enterprise DAU), which is going to be a top-line product metric for 2024.

Requirements:

  • For all VS Code Cody telemetry, add what tier the user is in to the public_argument metadata field.
  • tier = free | pro | enterprise

This has already been approved by @kelsey-brown

Copy link

This issue is marked as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed automatically in 5 days.

@github-actions github-actions bot added the Stale label Feb 23, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 29, 2024
@chenkc805 chenkc805 reopened this Feb 29, 2024
@github-actions github-actions bot removed the Stale label Mar 1, 2024
pkukielka added a commit to sourcegraph/jetbrains that referenced this issue Mar 27, 2024
Fixes:
#550
sourcegraph/cody#2467

## Changes

1. Added `CodyAccount::getActiveAccountTier` method with result caching.
2. Added tier logging in `GraphQlLogger`
3. Refactored account change notification logic to be concentrated in
one place (`CodyAccount::setActiveAccount`)
4. Added periodic and on focus change querying of the account state (see
`CodyAuthenticationManager::init`)

## Test plan

Manual verification if proper entries are in the GraphQL
@pkukielka
Copy link
Contributor

tier = free | pro | enterprise

FYI it was implemented a bit differently by @philipp-spiess and to remain consistent I followed the same pattern in jetbrains:

enum CodyTier {
    Free = 0,
    Pro = 1,
    Enterprise = 2,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants