Skip to content

Commit f2a8b1a

Browse files
committed
Ignore the Microsoft-Windows-DotNETRuntime provider manifest if provided in the event stream.
1 parent eae6cf7 commit f2a8b1a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/TraceEvent/DynamicTraceEventParser.cs

+8
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@ private bool CheckForDynamicManifest(TraceEvent data)
198198
return false;
199199
}
200200

201+
// Starting with .NET 6, the manifest is written into the event stream, which results in
202+
// duplicate event dispatch. To avoid this, filter out the Microsoft-Windows-DotNETRuntime provider
203+
// if it is present in the event stream.
204+
if (data.ProviderGuid == ClrTraceEventParser.ProviderGuid)
205+
{
206+
return false;
207+
}
208+
201209
// Look up our information.
202210
List<PartialManifestInfo> partialManifestsForGuid;
203211
if (!partialManifests.TryGetValue(data.ProviderGuid, out partialManifestsForGuid))

0 commit comments

Comments
 (0)