mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
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:
@@ -133,7 +133,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
||||
|
||||
private void LogTelemetryEvent(bool value, [CallerMemberName] string moduleName = null )
|
||||
{
|
||||
var dataEvent = new EnabledModuleEvent()
|
||||
var dataEvent = new SettingsEnabledModuleEvent()
|
||||
{
|
||||
Value = value,
|
||||
ModuleName = moduleName,
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using System.Diagnostics.Tracing;
|
||||
using Microsoft.PowerToys.Telemetry;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.Telemetry
|
||||
{
|
||||
[EventData]
|
||||
public class EnabledModuleEvent : IEvent
|
||||
public class SettingsEnabledModuleEvent
|
||||
{
|
||||
public string EventName { get; } = "Settings_EnableModule";
|
||||
|
||||
Reference in New Issue
Block a user