diff --git a/CHANGELOG.md b/CHANGELOG.md index 155e18e9..522dbcdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changed + - Added `language_version` key to be sent with metadata (#110) - Added more debug logging to isolate issues easier (#111) ## [1.0.0] 2019-11-05 diff --git a/src/Events/Metadata.php b/src/Events/Metadata.php index f7044ba4..959c6b8c 100644 --- a/src/Events/Metadata.php +++ b/src/Events/Metadata.php @@ -52,6 +52,7 @@ private function data() : array return [ 'language' => 'php', 'version' => PHP_VERSION, + 'language_version' => PHP_VERSION, 'server_time' => $this->timer->getStart(), 'framework' => 'laravel', 'framework_version' => '', diff --git a/tests/Unit/Events/MetadataTest.php b/tests/Unit/Events/MetadataTest.php index a8814b7f..80888ebb 100644 --- a/tests/Unit/Events/MetadataTest.php +++ b/tests/Unit/Events/MetadataTest.php @@ -46,6 +46,7 @@ public function testMetadataFromConfigurationSerializesToJson() : void 'event_value' => [ 'language' => 'php', 'version' => PHP_VERSION, + 'language_version' => PHP_VERSION, 'server_time' => $time->format(Timer::FORMAT_FOR_CORE_AGENT), 'framework' => 'laravel', 'framework_version' => '', @@ -91,6 +92,7 @@ public function testAutoDetectedMetadataSerializesToJson() : void 'event_value' => [ 'language' => 'php', 'version' => PHP_VERSION, + 'language_version' => PHP_VERSION, 'server_time' => $time->format(Timer::FORMAT_FOR_CORE_AGENT), 'framework' => 'laravel', 'framework_version' => '',