Repository navigation
Closed
Description
The current stats we submit are aggregated before being submitted to us. If we want to answer more interesting questions, we need to increase the granularity of or metrics.
Current Stats
Measures: Timers
desktop/app/src/lib/stats/stats-database.ts
Lines 7 to 25 in e4754a2
| export interface ILaunchStats { | |
| /** | |
| * The time (in milliseconds) it takes from when our main process code is | |
| * first loaded until the app `ready` event is emitted. | |
| */ | |
| readonly mainReadyTime: number | |
| /** | |
| * The time (in milliseconds) it takes from when loading begins to loading | |
| * end. | |
| */ | |
| readonly loadTime: number | |
| /** | |
| * The time (in milliseconds) it takes from when our renderer process code is | |
| * first loaded until the renderer `ready` event is emitted. | |
| */ | |
| readonly rendererReadyTime: number | |
| } |
Measures: Counters
desktop/app/src/lib/stats/stats-database.ts
Lines 28 to 111 in e4754a2
| export interface IDailyMeasures { | |
| /** The ID in the database. */ | |
| readonly id?: number | |
| /** The number of commits. */ | |
| readonly commits: number | |
| /** The number of times the user has opened a shell from the app. */ | |
| readonly openShellCount: number | |
| /** The number of partial commits. */ | |
| readonly partialCommits: number | |
| /** The number of commits created with one or more co-authors. */ | |
| readonly coAuthoredCommits: number | |
| /** The number of times a branch is compared to an arbitrary branch */ | |
| readonly branchComparisons: number | |
| /** The number of times a branch is compared to `master` */ | |
| readonly defaultBranchComparisons: number | |
| /** The number of times a merge is initiated in the `compare` sidebar */ | |
| readonly mergesInitiatedFromComparison: number | |
| /** The number of times the `Branch -> Update From Default Branch` menu item is used */ | |
| readonly updateFromDefaultBranchMenuCount: number | |
| /** The number of times the `Branch -> Merge Into Current Branch` menu item is used */ | |
| readonly mergeIntoCurrentBranchMenuCount: number | |
| /** The number of times the user checks out a branch using the PR menu */ | |
| readonly prBranchCheckouts: number | |
| /** The numbers of times a repo with indicators is clicked on repo list view */ | |
| readonly repoWithIndicatorClicked: number | |
| /** The numbers of times a repo without indicators is clicked on repo list view */ | |
| readonly repoWithoutIndicatorClicked: number | |
| /** The number of times the user dismisses the diverged branch notification */ | |
| readonly divergingBranchBannerDismissal: number | |
| /** The number of times the user merges from the diverged branch notification merge CTA button */ | |
| readonly divergingBranchBannerInitatedMerge: number | |
| /** The number of times the user compares from the diverged branch notification compare CTA button */ | |
| readonly divergingBranchBannerInitiatedCompare: number | |
| /** | |
| * The number of times the user merges from the compare view after getting to that state | |
| * from the diverged branch notification compare CTA button | |
| */ | |
| readonly divergingBranchBannerInfluencedMerge: number | |
| /** The number of times the diverged branch notification is displayed */ | |
| readonly divergingBranchBannerDisplayed: number | |
| /** The number of times the user pushes to GitHub.com */ | |
| readonly dotcomPushCount: number | |
| /** The number of times the user pushed to a GitHub enterprise instance */ | |
| readonly enterprisePushCount: number | |
| /** The number of times the users pushes to a generic remote */ | |
| readonly externalPushCount: number | |
| /** The number of times the user merged before seeing the result of the merge hint */ | |
| readonly mergedWithLoadingHintCount: number | |
| /** The number of times the user has merged after seeing the 'no conflicts' merge hint */ | |
| readonly mergedWithCleanMergeHintCount: number | |
| /** The number of times the user has merged after seeing the 'you have XX conflicted files' warning */ | |
| readonly mergedWithConflictWarningHintCount: number | |
| /** Whether or not the app has been interacted with during the current reporting window */ | |
| readonly active: boolean | |
| /** The number of times a `git pull` initiated by Desktop resulted in a merge conflict for the user */ | |
| readonly mergeConflictFromPullCount: number | |
| /** The number of times a `git merge` initiated by Desktop resulted in a merge conflict for the user */ | |
| readonly mergeConflictFromExplicitMergeCount: number | |
| } |
Dimensions
desktop/app/src/lib/stats/stats-store.ts
Lines 59 to 91 in e4754a2
| interface ICalculatedStats { | |
| /** The app version. */ | |
| readonly version: string | |
| /** The OS version. */ | |
| readonly osVersion: string | |
| /** The platform. */ | |
| readonly platform: string | |
| /** The number of total repositories. */ | |
| readonly repositoryCount: number | |
| /** The number of GitHub repositories. */ | |
| readonly gitHubRepositoryCount: number | |
| /** The install ID. */ | |
| readonly guid: string | |
| /** Is the user logged in with a GitHub.com account? */ | |
| readonly dotComAccount: boolean | |
| /** Is the user logged in with an Enterprise account? */ | |
| readonly enterpriseAccount: boolean | |
| /** | |
| * The name of the currently selected theme/application | |
| * appearance as set at time of stats submission. | |
| */ | |
| readonly theme: string | |
| readonly eventType: 'usage' | |
| } |
These are composed to build the DailyStats type
desktop/app/src/lib/stats/stats-store.ts
Line 93 in e4754a2
| type DailyStats = ICalculatedStats & ILaunchStats & IDailyMeasures |
Proposed Stats format
[
{
"dimension": {
"user_guid": "",
"installation_guid": "",
"event_type": "commit"
},
"measure": {
"network_time": -1,
"memory_usage": 8e+8
}
}
]
Activity
billygriffin commentedon Sep 21, 2018
@desktop/analytics do you have any thoughts about this?
telliott27 commentedon Sep 21, 2018
To clarify, this is proposing moving from a daily aggregate metrics reporting to an event-based one, right? So we would generate a metrics package for each action we are tracking, with data about the action, and other context, and send that off to central?
I think ultimately this would be a good direction to go. It would make it easier to answer some of the questions we want to ask, and we can calculate better aggregate metrics, like the average spread per user of load times, commits per day, etc.
iAmWillShepherd commentedon Oct 10, 2018
Correct.
This is the goal. Right now, it seems like it will work, but we'll know for sure once it starts getting implemented.
outofambit commentedon Feb 6, 2020
closing this until we're ready to come back to it