mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 07:01:09 -07:00
feat(core): include initiationMethod in conversation interaction telemetry (#22054)
Co-authored-by: Yuna Seol <yunaseol@google.com>
This commit is contained in:
@@ -10,6 +10,7 @@ import { OAuth2Client } from 'google-auth-library';
|
||||
import {
|
||||
UserTierId,
|
||||
ActionStatus,
|
||||
InitiationMethod,
|
||||
type LoadCodeAssistResponse,
|
||||
type GeminiUserTier,
|
||||
type SetCodeAssistGlobalUserSettingRequest,
|
||||
@@ -206,6 +207,7 @@ describe('CodeAssistServer', () => {
|
||||
conversationOffered: expect.objectContaining({
|
||||
traceId: 'test-trace-id',
|
||||
status: ActionStatus.ACTION_STATUS_NO_ERROR,
|
||||
initiationMethod: InitiationMethod.COMMAND,
|
||||
streamingLatency: expect.objectContaining({
|
||||
totalLatency: expect.stringMatching(/\d+s/),
|
||||
firstMessageLatency: expect.stringMatching(/\d+s/),
|
||||
@@ -274,6 +276,7 @@ describe('CodeAssistServer', () => {
|
||||
expect.objectContaining({
|
||||
conversationOffered: expect.objectContaining({
|
||||
traceId: 'stream-trace-id',
|
||||
initiationMethod: InitiationMethod.COMMAND,
|
||||
}),
|
||||
timestamp: expect.stringMatching(
|
||||
/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,
|
||||
|
||||
@@ -339,6 +339,7 @@ describe('telemetry', () => {
|
||||
acceptedLines: '8',
|
||||
removedLines: '3',
|
||||
isAgentic: true,
|
||||
initiationMethod: InitiationMethod.COMMAND,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
@@ -204,6 +204,7 @@ function createConversationInteraction(
|
||||
removedLines,
|
||||
language,
|
||||
isAgentic: true,
|
||||
initiationMethod: InitiationMethod.COMMAND,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -330,6 +330,7 @@ export interface ConversationInteraction {
|
||||
removedLines?: string;
|
||||
language?: string;
|
||||
isAgentic?: boolean;
|
||||
initiationMethod?: InitiationMethod;
|
||||
}
|
||||
|
||||
export interface FetchAdminControlsRequest {
|
||||
|
||||
Reference in New Issue
Block a user