// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics.Tracing;
namespace Microsoft.PowerToys.Telemetry
{
///
/// Privacy Tag values
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1028:Enum Storage should be Int32", Justification = "Part of telem, can't adjust")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1069:Enums values should not be duplicated", Justification = "Part of telem, gets overwritten by build farm")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "Part of telem, can't adjust")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names", Justification = "Part of telem, can't adjust")]
public enum PartA_PrivTags
: ulong
{
///
None = 0,
///
ProductAndServicePerformance = 0x0u,
///
ProductAndServiceUsage = 0x0u,
}
///
/// Base class for telemetry events.
///
public class TelemetryBase : EventSource
{
///
/// The event tag for this event source.
///
public const EventTags ProjectTelemetryTagProductAndServicePerformance = (EventTags)0x0u;
///
/// The event keyword for this event source.
///
public const EventKeywords ProjectKeywordMeasure = (EventKeywords)0x0;
///
/// Group ID for Powertoys project.
///
private static readonly string[] PowerToysTelemetryTraits = { "ETW_GROUP", "{42749043-438c-46a2-82be-c6cbeb192ff2}" };
///
/// Initializes a new instance of the class.
///
/// .
public TelemetryBase(string eventSourceName)
: base(eventSourceName, EventSourceSettings.EtwSelfDescribingEventFormat, PowerToysTelemetryTraits)
{
return;
}
}
}