Mod sample to force-send never-store events before flush
@@ -314,7 +314,6 @@ int main()
config[CFG_STR_COLLECTOR_URL] = "https://v10.events.data.microsoft.com/OneCollector/1.0/";
logger = LogManager::Initialize(API_KEY);
- logDoNotStore(); // quick test for a do-not-store tag
logPiiMark(); // Direct upload
// This global context variable will not be seen by C API client
@@ -344,6 +343,9 @@ int main()
LogManager::SetTransmitProfile(TransmitProfile::TransmitProfile_NearRealTime);
+ logDoNotStore();
+ LogManager::UploadNow();
+
// Ingest events of various latencies
printf("Starting stress-test...\n");
for(size_t i = 1; i <= MAX_EVENTS_TO_LOG; i++)
