You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A string, parsed as [payload_field_name]:[payload_field_value] pairs separated by commas, that will stop the trace upon hitting an event containing all specified payload pairs. Requires `--stopping-event-provider-name` and `--stopping-event-event-name` to be set. for example, `--stopping-event-provider-name Microsoft-Windows-DotNETRuntime --stopping-event-event-name Method/JittingStarted --stopping-event-payload-filter MethodNameSpace:Program,MethodName:OnButtonClick` to stop the trace upon the first `Method/JittingStarted` event for the method `OnButtonClick` in the `Program` namespace emitted by the `Microsoft-Windows-DotNETRuntime` event provider.
Defines an additional optional filter for each provider's events. When no `--event-filters` is specified for a provider, all events allowed by the provider's keywords and level configuration are collected. Event filters provide additional granular control beyond the keyword/level filtering.
263
+
264
+
**Format:**`ProviderName:<Enable>:<EventIds>`
265
+
266
+
Where:
267
+
-`ProviderName`: The EventPipe provider name (e.g., `Microsoft-Windows-DotNETRuntime`)
268
+
-`Enable` : Boolean value indicating whether EventIds will be enabled or disabled, defaults to false
269
+
-`EventIds`: Plus-delimited event IDs to enable or disable, defaults to empty.
270
+
271
+
**Examples:**
272
+
```
273
+
# Scenario: Disable specific events from Microsoft-Windows-DotNETRuntime
# Microsoft-Windows-DotNETRuntime: All events EXCEPT 1,2,3 are collected
284
+
# System.Threading.Tasks.TplEventSource: ONLY events 7,8,9 are collected
285
+
# MyCustomProvider: ALL events are collected (no filter specified - follows provider keywords/level)
286
+
```
287
+
259
288
> [!NOTE]
260
289
261
290
> - Stopping the trace may take a long time (up to minutes) for large applications. The runtime needs to send over the type cache for all managed code that was captured in the trace.
> All tracepoint names are automatically prefixed with the provider name to avoid collisions. For example, `gc_events` for the `Microsoft-Windows-DotNETRuntime` provider becomes `Microsoft_Windows_DotNETRuntime_gc_events`.
325
355
356
+
> [!TIP]
357
+
> Use `--event-filters` to disable specific events before they are routed to tracepoints. Event filtering happens before tracepoint routing - only events that pass the filter will be sent to their assigned tracepoints.
358
+
326
359
**Examples:**
327
360
```
328
361
# Scenario: All events from provider go to a default tracepoint
0 commit comments