(ctx: TelemetryContext, stepName: string, durationMs: number)
| 35 | } |
| 36 | |
| 37 | export async function emitStepCompleted(ctx: TelemetryContext, stepName: string, durationMs: number): Promise<void> { |
| 38 | if (isTelemetryDisabled()) return |
| 39 | try { |
| 40 | await eventCapture.capture(ctx.distinctId, 'activation:cli_step_completed', { |
| 41 | ...baseProperties(ctx), |
| 42 | step_name: stepName, |
| 43 | duration_ms: durationMs, |
| 44 | }) |
| 45 | } catch { |
| 46 | // telemetry should never block the command |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | export async function emitStepSkipped(ctx: TelemetryContext, stepName: string): Promise<void> { |
| 51 | if (isTelemetryDisabled()) return |
no test coverage detected