MCPcopy Create free account
hub / github.com/TanStack/cli / captureCommandCompleted

Method captureCommandCompleted

packages/cli/src/telemetry.ts:259–276  ·  view source on GitHub ↗
(command: string, durationMs: number)

Source from the content-addressed store, hash-verified

257 }
258
259 async captureCommandCompleted(command: string, durationMs: number) {
260 if (!this.enabled || !this.distinctId) {
261 return
262 }
263
264 await postEvent('command_completed', this.distinctId, <TelemetryProperties>cleanProperties({
265 ...this.baseProperties(),
266 ...this.commandProperties,
267 command,
268 duration_ms: durationMs,
269 result: 'success',
270 steps: this.completedSteps.map((step) => ({
271 duration_ms: step.durationMs,
272 id: step.id,
273 type: step.type,
274 })),
275 }))
276 }
277
278 async captureCommandFailed(
279 command: string,

Callers 2

runWithTelemetryFunction · 0.80
telemetry.test.tsFile · 0.80

Calls 3

basePropertiesMethod · 0.95
postEventFunction · 0.85
cleanPropertiesFunction · 0.85

Tested by

no test coverage detected