mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[telemetry][ColorPicker] add event name support (#10476)
Allow to set a custom name for the event instead of just using the class name.
This commit is contained in:
@@ -16,6 +16,8 @@ namespace Microsoft.PowerToys.Telemetry.Events
|
||||
{
|
||||
public bool UTCReplace_AppSessionGuid => true;
|
||||
|
||||
public string EventName { get; set; }
|
||||
|
||||
private string _version;
|
||||
|
||||
public string Version
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Microsoft.PowerToys.Telemetry
|
||||
where T : EventBase, IEvent
|
||||
{
|
||||
this.Write<T>(
|
||||
null,
|
||||
telemetryEvent.EventName,
|
||||
new EventSourceOptions()
|
||||
{
|
||||
Keywords = ProjectKeywordMeasure,
|
||||
|
||||
Reference in New Issue
Block a user