Skip to content

Commit 7db79e1

Browse files
authored
Stop logging tool call error message to clearcut (google-gemini#10511)
1 parent 319f43f commit 7db79e1

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

packages/core/src/telemetry/clearcut-logger/clearcut-logger.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,6 @@ export class ClearcutLogger {
475475
gemini_cli_key: EventMetadataKey.GEMINI_CLI_TOOL_CALL_DURATION_MS,
476476
value: JSON.stringify(event.duration_ms),
477477
},
478-
{
479-
gemini_cli_key: EventMetadataKey.GEMINI_CLI_TOOL_ERROR_MESSAGE,
480-
value: JSON.stringify(event.error),
481-
},
482478
{
483479
gemini_cli_key: EventMetadataKey.GEMINI_CLI_TOOL_CALL_ERROR_TYPE,
484480
value: JSON.stringify(event.error_type),
@@ -792,10 +788,6 @@ export class ClearcutLogger {
792788
gemini_cli_key: EventMetadataKey.GEMINI_CLI_KITTY_SEQUENCE_LENGTH,
793789
value: event.sequence_length.toString(),
794790
},
795-
{
796-
gemini_cli_key: EventMetadataKey.GEMINI_CLI_KITTY_TRUNCATED_SEQUENCE,
797-
value: event.truncated_sequence,
798-
},
799791
];
800792

801793
this.enqueueLogEvent(

packages/core/src/telemetry/clearcut-logger/event-metadata-key.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export enum EventMetadataKey {
7979
// Logs the tool call duration in milliseconds.
8080
GEMINI_CLI_TOOL_CALL_DURATION_MS = 17,
8181

82-
// Logs the tool call error message, if any.
83-
GEMINI_CLI_TOOL_ERROR_MESSAGE = 18,
82+
// Do not use.
83+
DEPRECATED_GEMINI_CLI_TOOL_ERROR_MESSAGE = 18,
8484

8585
// Logs the tool call error type, if any.
8686
GEMINI_CLI_TOOL_CALL_ERROR_TYPE = 19,
@@ -259,8 +259,8 @@ export enum EventMetadataKey {
259259
// Kitty Sequence Overflow Event Keys
260260
// ===========================================================================
261261

262-
// Logs the truncated kitty sequence.
263-
GEMINI_CLI_KITTY_TRUNCATED_SEQUENCE = 52,
262+
// Do not use.
263+
DEPRECATED_GEMINI_CLI_KITTY_TRUNCATED_SEQUENCE = 52,
264264

265265
// Logs the length of the kitty sequence that overflowed.
266266
GEMINI_CLI_KITTY_SEQUENCE_LENGTH = 53,

0 commit comments

Comments
 (0)