Skip to content

Commit 7c07945

Browse files
roomote[bot]roomotemrubensdaniel-lxs
authored
feat: add toolProtocol property to PostHog tool usage telemetry (#9374)
Co-authored-by: Roo Code <[email protected]> Co-authored-by: Matt Rubens <[email protected]> Co-authored-by: daniel-lxs <[email protected]>
1 parent 271d01b commit 7c07945

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/telemetry/src/TelemetryService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export class TelemetryService {
9898
this.captureEvent(TelemetryEventName.MODE_SWITCH, { taskId, newMode })
9999
}
100100

101-
public captureToolUsage(taskId: string, tool: string): void {
102-
this.captureEvent(TelemetryEventName.TOOL_USED, { taskId, tool })
101+
public captureToolUsage(taskId: string, tool: string, toolProtocol: string): void {
102+
this.captureEvent(TelemetryEventName.TOOL_USED, { taskId, tool, toolProtocol })
103103
}
104104

105105
public captureCheckpointCreated(taskId: string): void {

src/core/assistant-message/presentAssistantMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ export async function presentAssistantMessage(cline: Task) {
437437

438438
if (!block.partial) {
439439
cline.recordToolUsage(block.name)
440-
TelemetryService.instance.captureToolUsage(cline.taskId, block.name)
440+
TelemetryService.instance.captureToolUsage(cline.taskId, block.name, toolProtocol)
441441
}
442442

443443
// Validate tool use before execution.

0 commit comments

Comments
 (0)