mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
feat: add toolProtocol property to PostHog tool usage telemetry (#9374)
Co-authored-by: Roo Code <roomote@roocode.com> Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com> Co-authored-by: daniel-lxs <ricciodaniel98@gmail.com>
This commit is contained in:
parent
271d01bada
commit
7c079453dc
2 changed files with 3 additions and 3 deletions
|
|
@ -98,8 +98,8 @@ export class TelemetryService {
|
|||
this.captureEvent(TelemetryEventName.MODE_SWITCH, { taskId, newMode })
|
||||
}
|
||||
|
||||
public captureToolUsage(taskId: string, tool: string): void {
|
||||
this.captureEvent(TelemetryEventName.TOOL_USED, { taskId, tool })
|
||||
public captureToolUsage(taskId: string, tool: string, toolProtocol: string): void {
|
||||
this.captureEvent(TelemetryEventName.TOOL_USED, { taskId, tool, toolProtocol })
|
||||
}
|
||||
|
||||
public captureCheckpointCreated(taskId: string): void {
|
||||
|
|
|
|||
|
|
@ -437,7 +437,7 @@ export async function presentAssistantMessage(cline: Task) {
|
|||
|
||||
if (!block.partial) {
|
||||
cline.recordToolUsage(block.name)
|
||||
TelemetryService.instance.captureToolUsage(cline.taskId, block.name)
|
||||
TelemetryService.instance.captureToolUsage(cline.taskId, block.name, toolProtocol)
|
||||
}
|
||||
|
||||
// Validate tool use before execution.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue