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
112.6M
112,595,833
Published
Oct 30, 2025
Latest stable version

Install

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

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, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.