{"action":"closed","issue":{"url":"https://api.github.com/repos/Microsoft/perfview/issues/801","repository_url":"https://api.github.com/repos/Microsoft/perfview","labels_url":"https://api.github.com/repos/Microsoft/perfview/issues/801/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/perfview/issues/801/comments","events_url":"https://api.github.com/repos/Microsoft/perfview/issues/801/events","html_url":"https://github.com/Microsoft/perfview/issues/801","id":383941371,"node_id":"MDU6SXNzdWUzODM5NDEzNzE=","number":801,"title":"Don't see event counters with own TraceEventSession but PerfView does see them","user":{"login":"BruceCowan-AI","id":3277441,"node_id":"MDQ6VXNlcjMyNzc0NDE=","avatar_url":"https://avatars2.githubusercontent.com/u/3277441?v=4","gravatar_id":"","url":"https://api.github.com/users/BruceCowan-AI","html_url":"https://github.com/BruceCowan-AI","followers_url":"https://api.github.com/users/BruceCowan-AI/followers","following_url":"https://api.github.com/users/BruceCowan-AI/following{/other_user}","gists_url":"https://api.github.com/users/BruceCowan-AI/gists{/gist_id}","starred_url":"https://api.github.com/users/BruceCowan-AI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BruceCowan-AI/subscriptions","organizations_url":"https://api.github.com/users/BruceCowan-AI/orgs","repos_url":"https://api.github.com/users/BruceCowan-AI/repos","events_url":"https://api.github.com/users/BruceCowan-AI/events{/privacy}","received_events_url":"https://api.github.com/users/BruceCowan-AI/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-23T23:29:12Z","updated_at":"2018-11-27T17:31:06Z","closed_at":"2018-11-27T17:31:06Z","author_association":"NONE","body":"I am trying to pick up event counters in my own TraceEventSession, but I don't get them. PerfView, run at the same time with the same collect arguments, does see them. I am using .NET Framework 4.7.2. What am I doing wrong?\r\n\r\nMy code to record the events looks like this:\r\n`_traceSession = new TraceEventSession(\"AquariusTestTraceSession\");\r\n            _traceSession.EnableProvider(TplEtwProviderTraceEventParser.ProviderGuid, eventLevel, (ulong)TplEtwProviderTraceEventParser.Keywords.TasksFlowActivityIds);\r\n            _traceSession.EnableProvider(EtwNames.TimeSeriesProviderName, eventLevel);\r\n            var options = new TraceEventProviderOptions(\"EventCounterIntervalSec\", eventCounterIntervalSec.ToString());\r\n            _traceSession.EnableProvider(EtwNames.ProcessingProviderName, eventLevel, options: options);\r\n            var testAllEventStream = _traceSession.Source.ObserveAll();\r\n            testAllEventStream.Subscribe(ev =>\r\n            {\r\n                Console.WriteLine($\"All received {ev.EventName} activityId {ActivityPathString(ev.ActivityID)} from {ev.ProviderName}\");\r\n            });`"}}
{"actor":{"display_login":"BruceCowan-AI"}}