445
446
reportRepoInfo(context: IAgentHostRestrictedTelemetryContext, report: IAgentHostRepoInfoReport): void {
448
>
if (!restricted) {
449
return;
450
}
452
>
remoteUrl: report.remoteUrl,
453
>
repoId: report.repoId,
454
>
repoType: report.repoType,
455
>
headCommitHash: report.headCommitHash,
456
>
headBranchName: report.headBranchName,
457
>
fileRelativePaths: report.fileRelativePaths,
458
>
diffsJSON: report.diffsJSON,
459
>
result: report.result,
460
>
isActiveRepository: report.isActiveRepository,
461
>
location: report.location,
462
>
telemetryMessageId: report.telemetryMessageId,
463
>
};
464
>
const measurements = {
465
>
workspaceFileCount: report.workspaceFileCount,
466
>
changedFileCount: report.changedFileCount,
467
>
diffSizeBytes: report.diffSizeBytes,
468
>
repoIndex: 0,
469
>
repoCount: 1,
470
>
};
471
>
const { headBranchName: _, fileRelativePaths: _2, ...internalProperties } = properties;
472
>
restricted.sendEnhancedGHTelemetryEventForContext(context, 'request.repoInfo', multiplexProperties(properties), measurements);
473
>
restricted.sendInternalMSFTTelemetryEventForContext(context, 'request.repoInfo', multiplexProperties(internalProperties), measurements);
474
>
}
475
476
turnCompleted(report: IAgentHostTurnCompletedReport): void {