mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Small refactor to use common powertoys telemetry event source accross modules.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.PowerLauncher.Telemetry;
|
||||
using Microsoft.PowerToys.Telemetry;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
@@ -98,7 +99,7 @@ namespace PowerLauncher
|
||||
|
||||
bootTime.Stop();
|
||||
|
||||
PowerLauncherTelemetry.Log.WriteEvent(new BootEvent() { BootTimeMs = bootTime.ElapsedMilliseconds });
|
||||
PowerToysTelemetry.Log.WriteEvent(new BootEvent() { BootTimeMs = bootTime.ElapsedMilliseconds });
|
||||
|
||||
//[Conditional("RELEASE")]
|
||||
// check udpate every 5 hours
|
||||
|
||||
@@ -28,6 +28,7 @@ using Mages.Core.Runtime.Converters;
|
||||
using System.Runtime.InteropServices;
|
||||
using Microsoft.PowerLauncher.Telemetry;
|
||||
using System.Timers;
|
||||
using Microsoft.PowerToys.Telemetry;
|
||||
|
||||
namespace PowerLauncher
|
||||
{
|
||||
@@ -66,7 +67,7 @@ namespace PowerLauncher
|
||||
_firstDeleteTimer.Stop();
|
||||
if (_deletePressed)
|
||||
{
|
||||
PowerLauncherTelemetry.Log.WriteEvent(new FirstDeleteEvent());
|
||||
PowerToysTelemetry.Log.WriteEvent(new FirstDeleteEvent());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user