dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.27k stars 4.73k forks source link

Add a runtime event for detecting EventSourceSwitch turned off #47062

Open sywhang opened 3 years ago

sywhang commented 3 years ago

Related: https://github.com/dotnet/runtime/issues/47061

For ETW/LTTng scenarios - if EventSourceSwitch is turned off, tools that relies on OS-specific tracing mechanisms like ETW/LTTng can't use diagnostics server command to detect that EventSourceSwitch is turned off for a target app.

This issue tracks work for adding a runtime event under the Microsoft-Windows-DotNETRuntime provider that always fires when EventSourceSwitch is turned off.

cc @LakshanF

LakshanF commented 3 years ago

From a team discussion related to #43657