MCPcopy
hub / github.com/prisma/prisma / emitFlowStarted

Function emitFlowStarted

packages/cli/src/bootstrap/telemetry.ts:28–35  ·  view source on GitHub ↗
(ctx: TelemetryContext)

Source from the content-addressed store, hash-verified

26}
27
28export 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
37export async function emitStepCompleted(ctx: TelemetryContext, stepName: string, durationMs: number): Promise<void> {
38 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