Skip to main content
Microsoft.Diagnostics.Tracing.TraceEvent package icon

Microsoft.Diagnostics.Tracing.TraceEvent

Event Tracing for Windows (ETW) is a powerful logging mechanism built into the Windows OS and is used extensively in Windows. You can also log ETW events yourself code using the System.Diagnostics.Tracing.EventSource class. The TraceEvent library conains the classes needed to control ETW providers (including .NET EventSources) and parse the events they emit. The library includes -- TraceEventSession which can enable ETW providers, -- EtwTraceEventSource which lets you read the stream of ETW events, and -- TraceLog which is is digested form of ETW events which include decoded stack traces associated with the events. See https://github.com/Microsoft/perfview/blob/master/documentation/TraceEvent/TraceEventLibrary.md for more.

Total Downloads
110.2M
110,243,493
Published
Jun 16, 2026
Latest stable version

Install

.NET CLI
dotnet add package Microsoft.Diagnostics.Tracing.TraceEvent --version 3.2.4
Package Manager Console
Install-Package Microsoft.Diagnostics.Tracing.TraceEvent -Version 3.2.4
PackageReference
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="3.2.4" />

Frameworks

.NETStandard2.0

Dependencies

[5.0.0, )
[9.0.8, )
[9.0.8, )
[4.7.0, )
[0.2.510501, )
System.Text.Json
.NETStandard2.0
[9.0.8, )