MCPcopy
hub / github.com/prisma/prisma / emitFlowCompleted

Function emitFlowCompleted

packages/cli/src/bootstrap/telemetry.ts:87–102  ·  view source on GitHub ↗
(
  ctx: TelemetryContext,
  stepsCompleted: string[],
  durationMs: number,
)

Source from the content-addressed store, hash-verified

85}
86
87export 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}

Callers 1

runMethod · 0.90

Calls 3

isTelemetryDisabledFunction · 0.85
basePropertiesFunction · 0.85
captureMethod · 0.65

Tested by

no test coverage detected