Closed
Description
On some workloads ETW is not supported at all, on some we'd like to disable it by default due to size impact. There is not "feature flag" to do it right now.
We should introduce something like RuntimeFeature.IsEvenTracingSupported
to allow illinker to remove any event tracing code and metadata automatically.
This flag would need to be used to guard any EventSource like calls and attributes but that should be quite straight forward code replace in the framework. The ETW today mostly relies on instance IsEnabled method check which is not suitable for substitution as illinker as it has several overloads and would require all EventSource derived constructors to be kept with their dependencies.