From 8eefd849c1fdc3ac0cfb3e134fa59b154dd6d650 Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Wed, 2 Aug 2023 08:39:56 -0400 Subject: [PATCH] Update HTTPEventSourceListener to trace the right events. (#2727) --- src/Runner.Listener/Checks/CheckUtil.cs | 34 +++++++++++++++++++------ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/Runner.Listener/Checks/CheckUtil.cs b/src/Runner.Listener/Checks/CheckUtil.cs index b55101256..6773a1e6f 100644 --- a/src/Runner.Listener/Checks/CheckUtil.cs +++ b/src/Runner.Listener/Checks/CheckUtil.cs @@ -351,21 +351,39 @@ namespace GitHub.Runner.Listener.Check private readonly Dictionary> _ignoredEvent = new() { { - "Microsoft-System-Net-Http", + "System.Net.Http", new HashSet { "Info", "Associate", - "Enter", - "Exit" } }, { - "Microsoft-System-Net-Security", + "System.Net.Security", + new HashSet + { + "Info", + "DumpBuffer", + "SslStreamCtor", + "SecureChannelCtor", + "NoDelegateNoClientCert", + "CertsAfterFiltering", + "UsingCachedCredential", + "SspiSelectedCipherSuite" + } + }, + { + "Private.InternalDiagnostics.System.Net.Http", + new HashSet + { + "Info", + "Associate", + } + }, + { + "Private.InternalDiagnostics.System.Net.Security", new HashSet { - "Enter", - "Exit", "Info", "DumpBuffer", "SslStreamCtor", @@ -391,8 +409,8 @@ namespace GitHub.Runner.Listener.Check { base.OnEventSourceCreated(eventSource); - if (eventSource.Name == "Microsoft-System-Net-Http" || - eventSource.Name == "Microsoft-System-Net-Security") + if (eventSource.Name.Contains("System.Net.Http") || + eventSource.Name.Contains("System.Net.Security")) { EnableEvents(eventSource, EventLevel.Verbose, EventKeywords.All); }