ensure metadata exists on events

This commit is contained in:
Scott Bell
2024-12-17 10:21:48 +01:00
parent aaa2e43796
commit 2ba6bc9c73
3 changed files with 5 additions and 8 deletions

View File

@ -33,7 +33,7 @@ class EventTelemetryProvider {
generateData(firstObservedTime, count, startTime, duration, name) {
const millisecondsSinceStart = startTime - firstObservedTime;
const randomFewSeconds = Math.floor(Math.random() * 10000);
const randomFewSeconds = Math.floor(Math.random() * 1000);
const utc = startTime + count + randomFewSeconds * duration;
const ind = count % messages.length;
const message = messages[ind] + ' - [' + millisecondsSinceStart + ']';