MCPcopy
hub / github.com/prisma/prisma / baseProperties

Function baseProperties

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

Source from the content-addressed store, hash-verified

16}
17
18function baseProperties(ctx: TelemetryContext): Record<string, unknown> {
19 return {
20 'organization-id': ctx.linkResult?.workspaceId ?? null,
21 'project-id': ctx.linkResult?.projectId ?? null,
22 'environment-id': ctx.linkResult?.environmentId ?? null,
23 database_id: ctx.databaseId ?? ctx.linkResult?.databaseId ?? null,
24 is_existing_project: ctx.projectState.hasPackageJson,
25 }
26}
27
28export async function emitFlowStarted(ctx: TelemetryContext): Promise<void> {
29 if (isTelemetryDisabled()) return

Callers 5

emitFlowStartedFunction · 0.85
emitStepCompletedFunction · 0.85
emitStepSkippedFunction · 0.85
emitStepFailedFunction · 0.85
emitFlowCompletedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected