Removing unecceary EventName requirement. EventSource<T>.Write will use the type name of T if null is passed in. This saves us passing an extra string uneccesarily as the public property would be serialized into the event data as well as being specified as the EventName

This commit is contained in:
ryanbodrug-microsoft
2020-05-05 12:17:26 -07:00
parent b4d75e3240
commit 1f9c1ce8e4
19 changed files with 56 additions and 100 deletions

View File

@@ -99,7 +99,7 @@ namespace PowerLauncher
bootTime.Stop();
PowerToysTelemetry.Log.WriteEvent(new BootEvent() { BootTimeMs = bootTime.ElapsedMilliseconds });
PowerToysTelemetry.Log.WriteEvent(new LauncherBootEvent() { BootTimeMs = bootTime.ElapsedMilliseconds });
//[Conditional("RELEASE")]
// check udpate every 5 hours

View File

@@ -67,7 +67,7 @@ namespace PowerLauncher
_firstDeleteTimer.Stop();
if (_deletePressed)
{
PowerToysTelemetry.Log.WriteEvent(new FirstDeleteEvent());
PowerToysTelemetry.Log.WriteEvent(new LauncherFirstDeleteEvent());
}
}