{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/11939","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/11939/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/11939/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/11939/events","html_url":"https://github.com/dotnet/coreclr/issues/11939","id":231711900,"number":11939,"title":"EventPipe: Feature Request: Support EventSource RichPayload events","user":{"login":"northtyphoon","id":2686301,"avatar_url":"https://avatars0.githubusercontent.com/u/2686301?v=3","gravatar_id":"","url":"https://api.github.com/users/northtyphoon","html_url":"https://github.com/northtyphoon","followers_url":"https://api.github.com/users/northtyphoon/followers","following_url":"https://api.github.com/users/northtyphoon/following{/other_user}","gists_url":"https://api.github.com/users/northtyphoon/gists{/gist_id}","starred_url":"https://api.github.com/users/northtyphoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/northtyphoon/subscriptions","organizations_url":"https://api.github.com/users/northtyphoon/orgs","repos_url":"https://api.github.com/users/northtyphoon/repos","events_url":"https://api.github.com/users/northtyphoon/events{/privacy}","received_events_url":"https://api.github.com/users/northtyphoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-26T19:11:21Z","updated_at":"2017-05-26T19:11:21Z","closed_at":null,"body":"Here is the sample code to emit richpayload events. \r\n\r\n[EventSource(Name = \"TestEventSource\", Guid = \"c68d147f-ede2-4960-af7d-aca72ae34807\")]\r\n    public class TestEventSource : EventSource\r\n    {\r\n        public class Keywords\r\n        {\r\n            public const EventKeywords Request = (EventKeywords)1;\r\n        }\r\n\r\n        public static TestEventSource Log = new TestEventSource();\r\n\r\n        private TestEventSource()\r\n        {\r\n        }\r\n        \r\n        public void RequestStart(int intArg, string strArg)\r\n        {\r\n            Console.WriteLine($\"{nameof(RequestStart)},{intArg},{strArg}\");\r\n            Write(\r\n                \"Request\", \r\n                new EventSourceOptions { Keywords = Keywords.Request, Opcode = EventOpcode.Start, Level = EventLevel.Informational },\r\n                new { IntArg = intArg, strArg = strArg }\r\n            );\r\n        }\r\n\r\n        public void RequestStop(int intArg, string strArg)\r\n        {\r\n            Console.WriteLine($\"{nameof(RequestStop)},{intArg},{strArg}\");\r\n            Write(\r\n                \"Request\", \r\n                new EventSourceOptions { Keywords = Keywords.Request, Opcode = EventOpcode.Stop, Level = EventLevel.Informational },\r\n                new { IntArg = intArg, strArg = strArg }\r\n            );\r\n        }        \r\n    } "}}
{"actor":{"display_login":"northtyphoon"}}