From a99ec90eb220fa3b57f089677d8d1e85d48fb3a8 Mon Sep 17 00:00:00 2001 From: Justin Anderson Date: Wed, 2 Jun 2021 15:26:41 -0700 Subject: [PATCH] Fix translation of default process CommandLine filter key. (#388) --- .../DiagProcessFilter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Diagnostics.Monitoring.RestServer/DiagProcessFilter.cs b/src/Microsoft.Diagnostics.Monitoring.RestServer/DiagProcessFilter.cs index 95f23c56485..a6ffd980730 100644 --- a/src/Microsoft.Diagnostics.Monitoring.RestServer/DiagProcessFilter.cs +++ b/src/Microsoft.Diagnostics.Monitoring.RestServer/DiagProcessFilter.cs @@ -72,7 +72,7 @@ private static DiagProcessFilterEntry TransformDescriptor(ProcessFilterDescripto case ProcessFilterKey.CommandLine: return new DiagProcessFilterEntry { - Criteria = DiagProcessFilterCriteria.ProcessName, + Criteria = DiagProcessFilterCriteria.CommandLine, MatchType = (processFilterDescriptor.MatchType == ProcessFilterType.Exact) ? DiagProcessFilterMatchType.Exact : DiagProcessFilterMatchType.Contains, Value = processFilterDescriptor.Value };