(ctx: TelemetryContext, stepName: string)
| 48 | } |
| 49 | |
| 50 | export async function emitStepSkipped(ctx: TelemetryContext, stepName: string): Promise<void> { |
| 51 | if (isTelemetryDisabled()) return |
| 52 | try { |
| 53 | await eventCapture.capture(ctx.distinctId, 'activation:cli_step_skipped', { |
| 54 | ...baseProperties(ctx), |
| 55 | step_name: stepName, |
| 56 | }) |
| 57 | } catch { |
| 58 | // telemetry should never block the command |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | export async function emitStepFailed(ctx: TelemetryContext, stepName: string, error: string): Promise<void> { |
| 63 | if (isTelemetryDisabled()) return |
no test coverage detected