Skip to content

Commit

Permalink
Update local-telemetry.js
Browse files Browse the repository at this point in the history
  • Loading branch information
swamala authored Nov 28, 2024
1 parent da1dc98 commit 79a8665
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/telemetry/implementation/local-telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class TelemetryQuest {
table.symbol('operationId', operationId || 'NULL');
table.symbol('blockchainId', blockchainId || 'NULL');
table.symbol('name', name || 'NULL');
table.timestampColumn('timestamp', timestamp || Date.now()); // Default to current timestamp in milliseconds
if (value1 !== null) table.string('value1', value1);
if (value2 !== null) table.string('value2', value2);
if (value3 !== null) table.string('value3', value3);
if (value1 !== null) table.symbol('value1', value1);
if (value2 !== null) table.symbol('value2', value2);
if (value3 !== null) table.symbol('value3', value3);
table.timestampColumn('timestamp', timestamp * 1000);

await table.at(Date.now(), 'ms'); // Sends data with the current timestamp
await sender.flush();
Expand Down

0 comments on commit 79a8665

Please sign in to comment.