private void LogLinkedFileDiffMergingSessionInfo(LinkedFileDiffMergingSessionInfo sessionInfo) { // don't report telemetry if (!_logSessionInfo) { return; } var sessionId = SessionLogMessage.GetNextId(); Logger.Log(FunctionId.Workspace_Solution_LinkedFileDiffMergingSession, SessionLogMessage.Create(sessionId, sessionInfo)); foreach (var groupInfo in sessionInfo.LinkedFileGroups) { Logger.Log(FunctionId.Workspace_Solution_LinkedFileDiffMergingSession_LinkedFileGroup, SessionLogMessage.Create(sessionId, groupInfo)); } }
internal static void LogSession(Workspace workspace, LinkedFileDiffMergingSessionInfo sessionInfo) { if (sessionInfo.LinkedFileGroups.Count > 1) { LogNewSessionWithLinkedFiles(); LogNumberOfLinkedFileGroupsProcessed(sessionInfo.LinkedFileGroups.Count); foreach (var groupInfo in sessionInfo.LinkedFileGroups) { LogNumberOfIdenticalDiffs(groupInfo.IdenticalDiffs); LogNumberOfIsolatedDiffs(groupInfo.IsolatedDiffs); LogNumberOfOverlappingDistinctDiffs(groupInfo.OverlappingDistinctDiffs); LogNumberOfOverlappingDistinctDiffsWithSameSpan(groupInfo.OverlappingDistinctDiffsWithSameSpan); LogNumberOfOverlappingDistinctDiffsWithSameSpanAndSubstringRelation(groupInfo.OverlappingDistinctDiffsWithSameSpanAndSubstringRelation); LogNumberOfInsertedMergeConflictComments(groupInfo.InsertedMergeConflictComments); LogNumberOfInsertedMergeConflictCommentsAtAdjustedLocation(groupInfo.InsertedMergeConflictCommentsAtAdjustedLocation); if (groupInfo.InsertedMergeConflictComments > 0 || groupInfo.InsertedMergeConflictCommentsAtAdjustedLocation > 0) { Logger.Log(FunctionId.Workspace_Solution_LinkedFileDiffMergingSession_LinkedFileGroup, SessionLogMessage.Create(groupInfo)); } } } }