(core) Add earliestDocCreatedAt to telemetry

Summary: This tracks the earliest document creation time, if any, for each site.

Test Plan: Server tests.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3991
This commit is contained in:
George Gevoian
2023-08-08 00:26:28 -07:00
parent efb5fc63d7
commit 24bbf375f9
4 changed files with 9 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ describe('Telemetry', function() {
numWorkspaces: 1,
numMembers: 1,
lastActivity: new Date('2022-12-30T01:23:45'),
earliestDocCreatedAt: new Date('2022-12-29T00:01:02'),
}));
assert.doesNotThrow(() => checker('watchedVideoTour', {
watchTimeSeconds: 30,
@@ -54,6 +55,7 @@ describe('Telemetry', function() {
numWorkspaces: 1,
numMembers: 1,
lastActivity: new Date('2022-12-30T01:23:45'),
earliestDocCreatedAt: new Date('2022-12-29T00:01:02'),
}));
assert.doesNotThrow(() => checker('watchedVideoTour', {
watchTimeSeconds: 30,