Skip to content

Commit 653be13

Browse files
authored
Don't emit manifest for NativeRuntimeEventSource (#78213)
1 parent b2cf1c7 commit 653be13

File tree

1 file changed

+6
-1
lines changed
  • src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing

1 file changed

+6
-1
lines changed

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2807,8 +2807,13 @@ private void EnsureDescriptorsInitialized()
28072807
// Today, we only send the manifest to ETW, custom listeners don't get it.
28082808
private unsafe void SendManifest(byte[]? rawManifest)
28092809
{
2810-
if (rawManifest == null)
2810+
if (rawManifest == null
2811+
// Don't send the manifest for NativeRuntimeEventSource, it is conceptually
2812+
// an extension of the native coreclr provider
2813+
|| m_name.Equals("Microsoft-Windows-DotNETRuntime"))
2814+
{
28112815
return;
2816+
}
28122817

28132818
Debug.Assert(!SelfDescribingEvents);
28142819

0 commit comments

Comments
 (0)