Insights/critical insights telemetry
Created by: coury-clark
Implements RFC 584 to add the totalCount for Code Insights to critical pings. This will be used for licensing enforcement. This separates into a new object codeInsightsCriticalTelemetry
to avoid any name collisions and add support for future changes to this license enforcement strategy.
Test plan
Example json from running locally with only critical pings enabled:
{
"u": 0,
"act": {
"DAUs": [],
"MAUs": [
{
"StartTime": "2022-02-01T00:00:00Z",
"UserCount": 2,
"AnonymousUserCount": 1,
"RegisteredUserCount": 1,
"IntegrationUserCount": 0
}
],
"WAUs": []
},
"auth": null,
"refs": false,
"site": "f30d99cf-b64a-463b-9b65-d1eb5f6d9f80",
"repos": false,
"signup": false,
"extsvcs": null,
"version": "0.0.0+dev",
"searched": false,
"hasExtURL": false,
"initAdmin": "[email protected]",
"deployType": "dev",
"totalUsers": 2,
"searchUsage": {},
"tosAccepted": true,
"repositories": {
"GitDirBytes": 11431429029,
"NewLinesCount": 2624871,
"DefaultBranchNewLinesCount": 2624871,
"OtherBranchesNewLinesCount": 0
},
"savedSearches": {},
"codeIntelUsage": {},
"homepagePanels": {},
"automationUsage": null,
"extensionsUsage": {},
"codeHostVersions": null,
"growthStatistics": {},
"searchOnboarding": {},
"batchChangesUsage": {},
"codeInsightsUsage": {},
"newCodeIntelUsage": {},
"dependencyVersions": {
"postgresVersion": "13.5",
"redisCacheVersion": "6.2.5",
"redisStoreVersion": "6.2.5"
},
"codeMonitoringUsage": {},
"retentionStatistics": {},
"codeInsightsCriticalTelemetry": {
"TotalInsights": 94
}
}