(ctx: TelemetryContext)
| 26 | } |
| 27 | |
| 28 | export async function emitFlowStarted(ctx: TelemetryContext): Promise<void> { |
| 29 | if (isTelemetryDisabled()) return |
| 30 | try { |
| 31 | await eventCapture.capture(ctx.distinctId, 'activation:cli_flow_started', baseProperties(ctx)) |
| 32 | } catch { |
| 33 | // telemetry should never block the command |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | export async function emitStepCompleted(ctx: TelemetryContext, stepName: string, durationMs: number): Promise<void> { |
| 38 | if (isTelemetryDisabled()) return |
no test coverage detected