( ctx: TelemetryContext, stepsCompleted: string[], durationMs: number, )
| 85 | } |
| 86 | |
| 87 | export async function emitFlowCompleted( |
| 88 | ctx: TelemetryContext, |
| 89 | stepsCompleted: string[], |
| 90 | durationMs: number, |
| 91 | ): Promise<void> { |
| 92 | if (isTelemetryDisabled()) return |
| 93 | try { |
| 94 | await eventCapture.capture(ctx.distinctId, 'activation:cli_flow_completed', { |
| 95 | ...baseProperties(ctx), |
| 96 | steps_completed: stepsCompleted, |
| 97 | duration_ms: durationMs, |
| 98 | }) |
| 99 | } catch { |
| 100 | // telemetry should never block the command |
| 101 | } |
| 102 | } |
no test coverage detected