private void SendSettingsTelemetry() { Log.Info("Send Run settings telemetry", this.GetType()); var plugins = PluginManager.AllPlugins.ToDictionary(x => x.Metadata.Name, x => new PluginModel() { Disabled = x.Metadata.Disabled, ActionKeyword = x.Metadata.ActionKeyword, IsGlobal = x.Metadata.IsGlobal, }); var telemetryEvent = new RunPluginsSettingsEvent(plugins); PowerToysTelemetry.Log.WriteEvent(telemetryEvent); }
private void SendSettingsTelemetry() { try { Log.Info("Send Run settings telemetry", this.GetType()); var plugins = PluginManager.AllPlugins.ToDictionary(x => x.Metadata.Name + " " + x.Metadata.ID, x => new PluginModel() { ID = x.Metadata.ID, Name = x.Metadata.Name, Disabled = x.Metadata.Disabled, ActionKeyword = x.Metadata.ActionKeyword, IsGlobal = x.Metadata.IsGlobal, }); var telemetryEvent = new RunPluginsSettingsEvent(plugins); PowerToysTelemetry.Log.WriteEvent(telemetryEvent); } catch (Exception ex) { Log.Exception("Unhandled exception when trying to send PowerToys Run settings telemetry.", ex, GetType()); } }