summaryrefslogtreecommitdiff
path: root/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts
diff options
context:
space:
mode:
authorBryan Morgan <[email protected]>2025-06-29 16:35:20 -0400
committerGitHub <[email protected]>2025-06-29 20:35:20 +0000
commitcdb803b9a431128a851a4da82edaa82494ac6215 (patch)
treebb281f50f41ff68cde421f78de622e220eeefb6e /packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts
parentdbe63e7234b0ea2577f84aab774ef011d300745f (diff)
Added obfuscated google account ID to clearcut log messages (#2593)
Diffstat (limited to 'packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts')
-rw-r--r--packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts b/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts
index f06ddb94..dec38f34 100644
--- a/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts
+++ b/packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts
@@ -17,7 +17,8 @@ import {
} from '../types.js';
import { EventMetadataKey } from './event-metadata-key.js';
import { Config } from '../../config/config.js';
-import { getPersistentUserId } from '../../utils/user_id.js';
+import { getInstallationId } from '../../utils/user_id.js';
+import { getObfuscatedGoogleAccountId } from '../../utils/user_id.js';
const start_session_event_name = 'start_session';
const new_prompt_event_name = 'new_prompt';
@@ -69,7 +70,8 @@ export class ClearcutLogger {
console_type: 'GEMINI_CLI',
application: 102,
event_name: name,
- client_install_id: getPersistentUserId(),
+ obfuscated_google_account_id: getObfuscatedGoogleAccountId(),
+ client_install_id: getInstallationId(),
event_metadata: [data] as object[],
};
}