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