Questions tagged [etw]

Event Tracing for Windows (ETW) is a high-speed tracing facility provided by the Windows Operating System which was first introduced in Windows 2000.

Event Tracing for Windows (ETW) is a general-purpose, high-speed tracing facility provided by the Windows operating system. Using a buffering and logging mechanism implemented in the kernel, ETW provides a tracing mechanism for events raised by both user-mode applications and kernel-mode device drivers.

Additionally, ETW gives you the ability to enable and disable logging dynamically, making it easy to perform detailed tracing in production environments without requiring reboots or application restarts. The logging mechanism uses per-processor buffers that are written to disk by an asynchronous writer thread. This allows large-scale server applications to write events with minimum disturbance.

ETW is the core tracing facility in Windows on top of which both the Event Log and WPP are built.

ETW was first introduced on Windows 2000. Since then, various core OS and server components have adopted ETW to instrument their activities, and it's now one of the key instrumentation technologies on Windows platforms.

On Windows Vista, ETW has gone through a major upgrade, and one of the most significant changes is the introduction of the unified event provider model and APIs. In short, the new unified APIs combine logging traces and writing to the Event Viewer into one consistent, easy-to-use mechanism for event providers. At the same time, several new features have been added to improve developer and end user experience.

445 questions
6
votes
1 answer

EventSource tracing with correlated activity id

I've started using ETW and the out-of-process Semantic Logging Block from Entlib 6. When I use async/await, the CurrentThreadActivityId is not set on the continuation thread and the TPL framework does not log a transfer event. This makes it…
Chris Gessler
  • 22,727
  • 7
  • 57
  • 83
6
votes
3 answers

ETW tracking from .net, user mode and driver

We have an application that parts of it are in .net, c++ usermode and C++ drivers. The application is divided into several executables that run on demand and communication with each other using LPC(the processes run in different…
Jack Juiceson
  • 830
  • 4
  • 12
  • 24
6
votes
1 answer

AppFabric - Etw - Unable to unregister the trace provider

We're using AppFabric Monitoring to inspect execution timings and to track log messages. This works pretty well since one year, but a few servers have suddenly stopped to monitor our WCF services. I have a little experience with AppFabric Monitoring…
Cybermaxs
  • 24,378
  • 8
  • 83
  • 112
6
votes
1 answer

Using .NET 4.5.1, how do I use some of the non-intuitive properties provided by ETW?

With the advancements in .NET v4.5.1, I would like to jump on the ETW bandwagon. However, it is unclear how some of the properties are best used to create an intuitive custom trace. How do I use some of the non-intuitive properties provided by the…
Jason
  • 4,897
  • 2
  • 33
  • 40
5
votes
1 answer

Which API does Windows Resource Monitor use?

Windows Resource Monitor displays (among other things) which files on disk are currently accessed by which processes. And it does that in realtime. How? I know that it probably uses ETW and that I can generate traces with tools like xperf. But how…
Helge Klein
  • 8,829
  • 8
  • 51
  • 71
5
votes
2 answers

How does System.Diagnostics.Tracing.EventSource.IsEnabled work?

When using a custom event source e.g.: [EventSource(Name = "MyEventSource")] public partial class CustomEventSource : EventSource { } There is an IsEnabled method on the EventSource…
Glen Thomas
  • 10,190
  • 5
  • 33
  • 65
5
votes
1 answer

WPA does not see ETW event data, tracerpt does

I am capturing ADO.Net diagnostics ETW, as described in Data Access Tracing in SQL Server 2008. The setup works, an ETL file is produced and I can see the ADO.Net trace if I use, say, tracerpt: System.Data, TextA, 0, 0, …
Remus Rusanu
  • 288,378
  • 40
  • 442
  • 569
5
votes
1 answer

EventSource vs EventProvider

What are the main differences between the EventSource and EventProvider classes? I understand both classes to be an event provider for ETW. If there aren't key differences in the two then what are the pros and cons. I use the EventSource class…
FalacyNine
  • 129
  • 1
  • 6
5
votes
1 answer

How to correlate RPC calls in ETW traces?

I recorded a trace of an application performing Local RPC calls on Windows. I used xperf with the Microsoft-Windows-RPC provider enabled. After opening the trace, I realized that it's not that simple to correlate client and server calls. It will be…
Sebastian
  • 3,764
  • 21
  • 28
5
votes
1 answer

TraceEventSession usage in ServiceFabric application raises insufficient resource error

I have a State-full service fabric application running in a cluster.. I have about 20 State-full applications running in the same cluster. i have used TraceEventSession for correlation purposes. My cluster is having 10 nodes. When i deploy an…
Rijas Kb
  • 212
  • 3
  • 10
5
votes
2 answers

Is there a tool to dump/show event data templates defined in a provider's manifest?

> wevtutil.exe gp /ge /gm /f:xml prints the manifest given a provider, except for its data templates. Is there a tool I am missing that would display the templates defined in an installed provider's manifest? They must be out there…
5
votes
1 answer

Trouble registering an ETW Provider

I am working on a UWP based application for Windows 10 IoT and I am wanting to configure ETW Tracing so I can view logging remotely using the integrated web interface: I believe I have created the necessary types, however I cannot see my provider…
Jamie Keeling
  • 9,806
  • 17
  • 65
  • 102
5
votes
1 answer

Activate Stacks only for some specific ETW Tasks in a provider?

Since Windows 7 it is possible to activate callstacks for usermode events. This works fine, but sometimes activating stacks for all tasks/Events in a provider is not needed and it would be nice to only activate stacks for some specific Tasks. Is…
magicandre1981
  • 27,895
  • 5
  • 86
  • 127
5
votes
1 answer

Semantic Logging: An item with the same key has already been added

Im trying to use new semantic application block for logging. As per MSDN i have test method which inspects the EventSource using EventSourceAnalyzer.InspectAll(MyEventSource.Log); But when i run this test i'm getting error An item with the same key…
Laksh
  • 151
  • 1
  • 4
5
votes
2 answers

Are there any ETW events created by IIS or ASP.NET which include the request URL?

I have been trying, without much success, to capture ETW events created by IIS or ASP.NET which include the request URL. I am using Windows 8 (development) and Windows Server 2008 R2 (production), so IIS 8.0 and 7.5 respectively. I am aware that in…
Tom Robinson
  • 8,348
  • 9
  • 58
  • 102
1 2
3
29 30