mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-29 15:30:40 -07:00
feat(telemetry): Add extension name to ToolCallEvent telemetry (#12343)
Co-authored-by: Shnatu <snatu@google.com>
This commit is contained in:
@@ -628,6 +628,7 @@ export async function discoverTools(
|
||||
mcpServerConfig.trust,
|
||||
undefined,
|
||||
cliConfig,
|
||||
mcpServerConfig.extension?.name,
|
||||
mcpServerConfig.extension?.id,
|
||||
messageBus,
|
||||
);
|
||||
|
||||
@@ -218,6 +218,7 @@ export class DiscoveredMCPTool extends BaseDeclarativeTool<
|
||||
readonly trust?: boolean,
|
||||
nameOverride?: string,
|
||||
private readonly cliConfig?: Config,
|
||||
override readonly extensionName?: string,
|
||||
override readonly extensionId?: string,
|
||||
messageBus?: MessageBus,
|
||||
) {
|
||||
@@ -230,6 +231,7 @@ export class DiscoveredMCPTool extends BaseDeclarativeTool<
|
||||
true, // isOutputMarkdown
|
||||
false, // canUpdateOutput,
|
||||
messageBus,
|
||||
extensionName,
|
||||
extensionId,
|
||||
);
|
||||
}
|
||||
@@ -244,6 +246,7 @@ export class DiscoveredMCPTool extends BaseDeclarativeTool<
|
||||
this.trust,
|
||||
`${this.serverName}__${this.serverToolName}`,
|
||||
this.cliConfig,
|
||||
this.extensionName,
|
||||
this.extensionId,
|
||||
this.messageBus,
|
||||
);
|
||||
|
||||
@@ -306,6 +306,7 @@ export abstract class DeclarativeTool<
|
||||
readonly isOutputMarkdown: boolean = true,
|
||||
readonly canUpdateOutput: boolean = false,
|
||||
readonly messageBus?: MessageBus,
|
||||
readonly extensionName?: string,
|
||||
readonly extensionId?: string,
|
||||
) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user