-
Notifications
You must be signed in to change notification settings - Fork 430
Expand file tree
/
Copy pathApplicationDataTelemetry.h
More file actions
41 lines (35 loc) · 1.67 KB
/
ApplicationDataTelemetry.h
File metadata and controls
41 lines (35 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT license.
#pragma once
#include <WindowsAppRuntimeInsights.h>
DECLARE_TRACELOGGING_CLASS(ApplicationDataTelemetryProvider,
"Microsoft.WindowsAppSDK.Notifications.ApplicationDataTelemetry",
// {cb014b10-5b3b-4117-a837-07b138bb519f}
(0xcb014b10, 0x5b3b, 0x4117, 0xa8, 0x37, 0x07, 0xb1, 0x38, 0xbb, 0x51, 0x9f));
class ApplicationDataTelemetry : public wil::TraceLoggingProvider
{
IMPLEMENT_TELEMETRY_CLASS(ApplicationDataTelemetry, ApplicationDataTelemetryProvider);
public:
BEGIN_COMPLIANT_MEASURES_ACTIVITY_CLASS(ClearMachineFolderAsync, PDT_ProductAndServicePerformance);
DEFINE_ACTIVITY_START(winrt::hstring const& path) noexcept try
{
TraceLoggingClassWriteStart(
ClearMachineFolderAsync,
_GENERIC_PARTB_FIELDS_ENABLED,
TraceLoggingWideString(path.c_str(), "Path"));
}
CATCH_LOG()
END_ACTIVITY_CLASS();
BEGIN_COMPLIANT_MEASURES_ACTIVITY_CLASS(UnpackagedClearAsync, PDT_ProductAndServicePerformance);
DEFINE_ACTIVITY_START(winrt::Microsoft::Windows::Storage::ApplicationDataLocality locality, winrt::hstring const& publisher, winrt::hstring const& product) noexcept try
{
TraceLoggingClassWriteStart(
UnpackagedClearAsync,
_GENERIC_PARTB_FIELDS_ENABLED,
TraceLoggingInt32(static_cast<std::int32_t>(locality), "Locality"),
TraceLoggingWideString(publisher.c_str(), "Publisher"),
TraceLoggingWideString(product.c_str(), "Product"));
}
CATCH_LOG()
END_ACTIVITY_CLASS();
};