ETW stands for Event Tracing for Windows. Simply put, ETW tracking means our ability to see tracking information in the famous Event Viewer.
Create a Workflow Console Application project:
Create a new Workflow Console Application project and name it
ConfiguringETWTracking. Name the solution as
Author a workflow:
Workflow1.xamlfile, which is created by default, and create an extremely simple workflow just for tracking.
Enable ETW tracking:
Open Event Viewer, navigate to Event Viewer | Applications and Services Logs | Microsoft | Windows | Application Server-Applications. Right-click Application Server-Applications and select View | Show Analytic and Debug Logs. After refreshing the node, we should see:
Create a workflow host:
Program.csfile, and fill the file with the following code:
using System.Activities.Tracking; using...