powershell - Event MyEvent has ID 2 which is already in use -


i implementing event tracing using ewt in service fabric application , faced these errors

error: exception in command processing eventsource mycompany-servicefabricapplication-livedatareader: event oncommandmessagereceived has id 2 in use

the "oncommandmessagereceived" custom event

[event(2, level = eventlevel.verbose, message = "queue client created '{0}'")]     public void onqueueclientcreated(string queueclientname)     {         if (isenabled())         {             writeevent(2, queueclientname);         }     } 

i have multiple/many of these errors , have tried messing around numbers ...

is there powershell command or else can tell ids in use or there safe range or something?

ps: when event fired can see in visual studio diagnostic events viewer message empty. cool if displayed message payload. possible? enter image description here

etw events must have unique id per provider. if have other events id 2 , change tie id different value.


Comments