(ctx: TelemetryContext)
| 16 | } |
| 17 | |
| 18 | function 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 | |
| 28 | export async function emitFlowStarted(ctx: TelemetryContext): Promise<void> { |
| 29 | if (isTelemetryDisabled()) return |
no outgoing calls
no test coverage detected