Log Gemini CLI OS / Process platform in the clearcut (#7086)
This commit is contained in:
parent
59cdf5933f
commit
c7fc489005
3 changed files with 11 additions and 0 deletions
|
|
@ -254,6 +254,10 @@ describe('ClearcutLogger', () => {
|
||||||
gemini_cli_key: EventMetadataKey.GEMINI_CLI_PROMPT_ID,
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_PROMPT_ID,
|
||||||
value: prompt_id,
|
value: prompt_id,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_OS,
|
||||||
|
value: process.platform,
|
||||||
|
},
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -885,6 +885,10 @@ export class ClearcutLogger {
|
||||||
gemini_cli_key: EventMetadataKey.GEMINI_CLI_PROMPT_ID,
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_PROMPT_ID,
|
||||||
value: this.promptId,
|
value: this.promptId,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_OS,
|
||||||
|
value: process.platform,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
return [...data, ...defaultLogMetadata];
|
return [...data, ...defaultLogMetadata];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -163,6 +163,9 @@ export enum EventMetadataKey {
|
||||||
// Logs the Gemini CLI Git commit hash
|
// Logs the Gemini CLI Git commit hash
|
||||||
GEMINI_CLI_GIT_COMMIT_HASH = 55,
|
GEMINI_CLI_GIT_COMMIT_HASH = 55,
|
||||||
|
|
||||||
|
// Logs the Gemini CLI OS
|
||||||
|
GEMINI_CLI_OS = 82,
|
||||||
|
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
// Loop Detected Event Keys
|
// Loop Detected Event Keys
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue