MCPcopy
hub / github.com/prisma/prisma / emitStepSkipped

Function emitStepSkipped

packages/cli/src/bootstrap/telemetry.ts:50–60  ·  view source on GitHub ↗
(ctx: TelemetryContext, stepName: string)

Source from the content-addressed store, hash-verified

48}
49
50export 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
62export async function emitStepFailed(ctx: TelemetryContext, stepName: string, error: string): Promise<void> {
63 if (isTelemetryDisabled()) return

Callers 1

runMethod · 0.90

Calls 3

isTelemetryDisabledFunction · 0.85
basePropertiesFunction · 0.85
captureMethod · 0.65

Tested by

no test coverage detected