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:
christine betts
2025-10-30 09:47:36 -04:00
committed by GitHub
parent 4d2a2de557
commit 2a3244b1bb

View File

@@ -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);
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.flushIfNeeded();
}