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

Method captureCommandStarted

packages/cli/src/telemetry.ts:245–257  ·  view source on GitHub ↗
(command: string, properties: TelemetryProperties)

Source from the content-addressed store, hash-verified

243 }
244
245 async captureCommandStarted(command: string, properties: TelemetryProperties) {
246 this.mergeProperties(properties)
247
248 if (!this.enabled || !this.distinctId) {
249 return
250 }
251
252 void postEvent('command_started', this.distinctId, <TelemetryProperties>cleanProperties({
253 ...this.baseProperties(),
254 ...this.commandProperties,
255 command,
256 }))
257 }
258
259 async captureCommandCompleted(command: string, durationMs: number) {
260 if (!this.enabled || !this.distinctId) {

Callers 2

runWithTelemetryFunction · 0.80
telemetry.test.tsFile · 0.80

Calls 4

mergePropertiesMethod · 0.95
basePropertiesMethod · 0.95
postEventFunction · 0.85
cleanPropertiesFunction · 0.85

Tested by

no test coverage detected