mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 20:44:46 -07:00
Log extension ID with tool call/slash command invocation (#12254)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -564,6 +564,12 @@ export class ClearcutLogger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (event.extension_id) {
|
||||||
|
data.push({
|
||||||
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_EXTENSION_ID,
|
||||||
|
value: event.extension_id,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const logEvent = this.createLogEvent(EventNames.TOOL_CALL, data);
|
const logEvent = this.createLogEvent(EventNames.TOOL_CALL, data);
|
||||||
this.enqueueLogEvent(logEvent);
|
this.enqueueLogEvent(logEvent);
|
||||||
@@ -779,6 +785,13 @@ export class ClearcutLogger {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.extension_id) {
|
||||||
|
data.push({
|
||||||
|
gemini_cli_key: EventMetadataKey.GEMINI_CLI_EXTENSION_ID,
|
||||||
|
value: event.extension_id,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.enqueueLogEvent(this.createLogEvent(EventNames.SLASH_COMMAND, data));
|
this.enqueueLogEvent(this.createLogEvent(EventNames.SLASH_COMMAND, data));
|
||||||
this.flushIfNeeded();
|
this.flushIfNeeded();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user