MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / captureTelemetry

Method captureTelemetry

src/core/webview/messageEnhancer.ts:134–142  ·  view source on GitHub ↗

* Captures telemetry for prompt enhancement * @param taskId Optional task ID for telemetry tracking * @param includeTaskHistory Whether task history was included in the enhancement

(taskId?: string, includeTaskHistory?: boolean)

Source from the content-addressed store, hash-verified

132 * @param includeTaskHistory Whether task history was included in the enhancement
133 */
134 static captureTelemetry(taskId?: string, includeTaskHistory?: boolean): void {
135 if (TelemetryService.hasInstance()) {
136 // Use captureEvent directly to include the includeTaskHistory property
137 TelemetryService.instance.captureEvent(TelemetryEventName.PROMPT_ENHANCED, {
138 ...(taskId && { taskId }),
139 includeTaskHistory: includeTaskHistory ?? false,
140 })
141 }
142 }
143}

Callers 2

webviewMessageHandlerFunction · 0.80

Calls 2

hasInstanceMethod · 0.45
captureEventMethod · 0.45

Tested by

no test coverage detected