92 references to TelemetryLogging
Microsoft.CodeAnalysis.EditorFeatures (11)
InlineRename\UI\SmartRename\SmartRenameViewModel_Telemetry.cs (2)
48TelemetryLogging.Log(FunctionId.Copilot_Rename, KeyValueLogMessage.Create(m => 64TelemetryLogging.Log(FunctionId.Copilot_Rename, KeyValueLogMessage.Create(m =>
Remote\SolutionChecksumUpdater.cs (4)
197TelemetryLogging.LogAggregatedCounter(FunctionId.ChecksumUpdater_SynchronizeTextChangesStatus, KeyValueLogMessage.Create(static (m, args) => 200m[TelemetryLogging.KeyName] = keyName; 201m[TelemetryLogging.KeyValue] = 1L; 202m[TelemetryLogging.KeyMetricName] = metricName;
Suggestions\SuggestedActions\SuggestedAction.cs (1)
119using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Application_Summary, $"Total");
Suggestions\SuggestedActionsSource_Async.cs (4)
113using var _2 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Summary, $"Total"); 120using var _3 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Summary, $"Total.Pri{(int)priority}"); 229using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Summary, $"Total.Pri{priorityProvider.Priority.GetPriorityInt()}.{nameof(GetCodeFixesAsync)}"); 245using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Summary, $"Total.Pri{priorityProvider.Priority.GetPriorityInt()}.{nameof(GetRefactoringsAsync)}");
Microsoft.CodeAnalysis.Features (18)
CodeFixes\Service\CodeFixService.cs (9)
101using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}.{nameof(GetMostSevereFixAsync)}"); 105using (TelemetryLogging.LogBlockTimeAggregatedHistogram( 179using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}"); 197using (TelemetryLogging.LogBlockTimeAggregatedHistogram( 296using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeFix_Summary, $"{nameof(GetDocumentFixAllForIdInSpanAsync)}"); 299using (TelemetryLogging.LogBlockTimeAggregatedHistogram( 541m[TelemetryLogging.KeyName] = fixerName; 542m[TelemetryLogging.KeyLanguageName] = document.Project.Language; 545using var _ = TelemetryLogging.LogBlockTime(FunctionId.CodeFix_Delay, logMessage, CodeFixTelemetryDelay);
CodeRefactorings\CodeRefactoringService.cs (4)
186using (TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.CodeRefactoring_Summary, $"Pri{priority.GetPriorityInt()}")) 211m[TelemetryLogging.KeyName] = providerName; 212m[TelemetryLogging.KeyLanguageName] = document.Project.Language; 216using (TelemetryLogging.LogBlockTime(FunctionId.CodeRefactoring_Delay, logMessage, CodeRefactoringTelemetryDelay))
Diagnostics\Service\DocumentAnalysisExecutor.cs (2)
211using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"{nameof(GetSyntaxDiagnosticsAsync)}.{nameof(GetAnalysisResultAsync)}"); 247using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"{nameof(GetSemanticDiagnosticsAsync)}.{nameof(GetAnalysisResultAsync)}");
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (3)
104using var _4 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}"); 238using var _2 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}.Incremental"); 248using var _2 = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.RequestDiagnostics_Summary, $"Pri{priorityProvider.Priority.GetPriorityInt()}.Document");
Microsoft.CodeAnalysis.LanguageServer (4)
Telemetry\VSCodeRequestTelemetryLogger.cs (4)
36TelemetryLogging.LogAggregatedCounter(FunctionId.LSP_FindDocumentInWorkspace, KeyValueLogMessage.Create(m => 39m[TelemetryLogging.KeyName] = ServerTypeName + "." + workspaceCountMetricName + "." + projectsLoaded; 40m[TelemetryLogging.KeyValue] = 1L; 41m[TelemetryLogging.KeyMetricName] = workspaceCountMetricName;
Microsoft.CodeAnalysis.LanguageServer.Protocol (21)
Handler\Telemetry\RequestTelemetryLogger.cs (21)
35TelemetryLogging.LogAggregatedCounter(FunctionId.LSP_FindDocumentInWorkspace, KeyValueLogMessage.Create(m => 37m[TelemetryLogging.KeyName] = ServerTypeName + "." + workspaceCounterMetricName; 38m[TelemetryLogging.KeyValue] = 1L; 39m[TelemetryLogging.KeyMetricName] = workspaceCounterMetricName; 48TelemetryLogging.LogAggregatedCounter(FunctionId.LSP_UsedForkedSolution, KeyValueLogMessage.Create(m => 50m[TelemetryLogging.KeyName] = ServerTypeName + "." + metricName; 51m[TelemetryLogging.KeyValue] = 1L; 52m[TelemetryLogging.KeyMetricName] = metricName; 66TelemetryLogging.LogAggregatedHistogram(FunctionId.LSP_TimeInQueue, KeyValueLogMessage.Create(m => 68m[TelemetryLogging.KeyName] = ServerTypeName; 69m[TelemetryLogging.KeyValue] = (long)queuedDuration.TotalMilliseconds; 70m[TelemetryLogging.KeyMetricName] = "TimeInQueue"; 74TelemetryLogging.LogAggregatedHistogram(FunctionId.LSP_RequestDuration, KeyValueLogMessage.Create(m => 76m[TelemetryLogging.KeyName] = ServerTypeName + "." + methodName + "." + language; 77m[TelemetryLogging.KeyValue] = (long)requestDuration.TotalMilliseconds; 78m[TelemetryLogging.KeyMetricName] = "RequestDuration"; 92TelemetryLogging.LogAggregatedCounter(FunctionId.LSP_RequestCounter, KeyValueLogMessage.Create(m => 94m[TelemetryLogging.KeyName] = ServerTypeName + "." + methodName + "." + language + "." + metricName; 95m[TelemetryLogging.KeyValue] = 1L; 96m[TelemetryLogging.KeyMetricName] = metricName; 107TelemetryLogging.Flush();
Microsoft.CodeAnalysis.Remote.ServiceHub (17)
Services\AssetSynchronization\RemoteAssetSynchronizationService.cs (4)
69TelemetryLogging.LogAggregatedCounter(FunctionId.RemoteHostService_SynchronizeTextAsyncStatus, KeyValueLogMessage.Create(static (m, args) => 72m[TelemetryLogging.KeyName] = keyName; 73m[TelemetryLogging.KeyValue] = 1L; 74m[TelemetryLogging.KeyMetricName] = metricName;
Services\DiagnosticAnalyzer\PerformanceTrackerService.cs (2)
71TelemetryLogging.LogAggregatedHistogram(FunctionId.PerformAnalysis_Summary, $"IndividualTimes", delay); 88TelemetryLogging.Log(FunctionId.PerformAnalysis_Delay, logMessage);
Services\DiagnosticAnalyzer\RemoteDiagnosticAnalyzerService.cs (1)
45using (TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.PerformAnalysis_Summary, $"Total"))
src\VisualStudio\Core\Def\Telemetry\AbstractWorkspaceTelemetryService.cs (1)
58TelemetryLogging.Flush();
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (6)
63if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyName, out var nameValue) || nameValue is not string name) 66if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyValue, out var valueValue) || valueValue is not TValue value) 75if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyMetricName, out var metricNameValue) || metricNameValue is not string metricName) 80if (curName is not TelemetryLogging.KeyName and not TelemetryLogging.KeyValue and not TelemetryLogging.KeyMetricName)
src\VisualStudio\Core\Def\Telemetry\Shared\AggregatingHistogramLog.cs (1)
42if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyName, out var nameValue) || nameValue is not string)
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogProvider.cs (1)
45TelemetryLogging.SetLogProvider(logProvider);
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
41m[TelemetryLogging.KeyValue] = elapsed;
Microsoft.CodeAnalysis.Workspaces (1)
CodeActions\CodeAction.cs (1)
266using var _ = TelemetryLogging.LogBlockTimeAggregatedHistogram(FunctionId.SuggestedAction_Preview_Summary, $"Total");
Microsoft.VisualStudio.LanguageServices (10)
Telemetry\AbstractWorkspaceTelemetryService.cs (1)
58TelemetryLogging.Flush();
Telemetry\Shared\AbstractAggregatingLog.cs (6)
63if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyName, out var nameValue) || nameValue is not string name) 66if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyValue, out var valueValue) || valueValue is not TValue value) 75if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyMetricName, out var metricNameValue) || metricNameValue is not string metricName) 80if (curName is not TelemetryLogging.KeyName and not TelemetryLogging.KeyValue and not TelemetryLogging.KeyMetricName)
Telemetry\Shared\AggregatingHistogramLog.cs (1)
42if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyName, out var nameValue) || nameValue is not string)
Telemetry\Shared\TelemetryLogProvider.cs (1)
45TelemetryLogging.SetLogProvider(logProvider);
Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
41m[TelemetryLogging.KeyValue] = elapsed;
Microsoft.VisualStudio.LanguageServices.DevKit (10)
Logging\VSCodeTelemetryLogger.cs (1)
136TelemetryLogging.Flush();
src\VisualStudio\Core\Def\Telemetry\Shared\AbstractAggregatingLog.cs (6)
63if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyName, out var nameValue) || nameValue is not string name) 66if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyValue, out var valueValue) || valueValue is not TValue value) 75if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyMetricName, out var metricNameValue) || metricNameValue is not string metricName) 80if (curName is not TelemetryLogging.KeyName and not TelemetryLogging.KeyValue and not TelemetryLogging.KeyMetricName)
src\VisualStudio\Core\Def\Telemetry\Shared\AggregatingHistogramLog.cs (1)
42if (!logMessage.Properties.TryGetValue(TelemetryLogging.KeyName, out var nameValue) || nameValue is not string)
src\VisualStudio\Core\Def\Telemetry\Shared\TelemetryLogProvider.cs (1)
45TelemetryLogging.SetLogProvider(logProvider);
src\VisualStudio\Core\Def\Telemetry\Shared\TimedTelemetryLogBlock.cs (1)
41m[TelemetryLogging.KeyValue] = elapsed;