microsoft / microsoft/perfview

TraceEvent: Support for EventName filtering in TraceEventProviderOptions

Open
#1,303 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C#
Stars
4.7k
Forks
775
Avg merge
5d 11h
Merged PRs (30d)
9

Description

Currently there seems to be no way to set Event Name based filters (applicable to TraceLogging events only) in TraceEventProviderOptions. Seems like that could be useful to add given more adoption of TraceLogging APIs over manifested events in recent years.

Though the ideal/optimal way to do filtering is using Keyword/Level pair, but there can be situations where that does not give the right scope of events.

This could be achieved by adding a new filter type: EVENT_FILTER_TYPE_EVENT_NAME

https://docs.microsoft.com/en-us/windows/win32/api/evntprov/ns-evntprov-event_filter_descriptor

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating TraceEventProviderOptions and its existing filter types, then compare them with the Windows EVENT_FILTER_TYPE_EVENT_NAME documentation linked in the issue. Done means TraceLogging events can be filtered by EventName through the new filter type, with appropriate coverage for the added behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.