Mod sample to force-send never-store events before flush

This commit is contained in:
Max Golovanov 2020-01-03 10:14:26 -08:00
Родитель 7c2934e371
Коммит 7846c120e3
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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++)