Skip to content

Commit

Permalink
Update TransactionEvent.php
Browse files Browse the repository at this point in the history
(fix) convert timestamp to int from float for sake of protobuf
  • Loading branch information
subzerobo authored Dec 7, 2020
1 parent 9f7b695 commit 488fbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Wrappers/TransactionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function start()
* @see https://github.com/elastic/apm-server/blob/v6.7.1/docs/spec/timestamp_epoch.json
*/
$this->setTimestamp();
$this->timestamp = microtime(true) * 1000000;
$this->timestamp = intval(microtime(true) * 1000000);
$this->transaction->setTimestamp($this->getTimestamp());
$this->timer->start();
}
Expand Down Expand Up @@ -274,4 +274,4 @@ public function getProtoBufTransaction() {
}


}
}

0 comments on commit 488fbff

Please sign in to comment.