(command: string, properties: TelemetryProperties)
| 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) { |
no test coverage detected