mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Tweak telemetry
Summary: Adjusts the level of telemetry collected from Grist SaaS. Test Plan: Tested manually. Reviewers: paulfitz Reviewed By: paulfitz Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D3899
This commit is contained in:
@@ -433,6 +433,16 @@ export class Client {
|
||||
return meta;
|
||||
}
|
||||
|
||||
public getFullTelemetryMeta() {
|
||||
const meta: Record<string, any> = {};
|
||||
// We assume the _userId has already been cached, which will be true always (for all practical
|
||||
// purposes) because it's set when the Authorizer checks this client.
|
||||
if (this._userId) { meta.userId = this._userId; }
|
||||
const altSessionId = this.getAltSessionId();
|
||||
if (altSessionId) { meta.altSessionId = altSessionId; }
|
||||
return meta;
|
||||
}
|
||||
|
||||
private async _refreshUser(dbManager: HomeDBManager) {
|
||||
if (this._profile) {
|
||||
const user = await this._fetchUser(dbManager);
|
||||
|
||||
Reference in New Issue
Block a user