diff --git a/config/elastic-apm.php b/config/elastic-apm.php index 6b9dcaf..257ea90 100644 --- a/config/elastic-apm.php +++ b/config/elastic-apm.php @@ -12,6 +12,12 @@ 'appVersion' => '', ], + 'env' => [ + // whitelist environment variables OR send everything + 'env' => ['DOCUMENT_ROOT', 'REMOTE_ADDR'] + //'env' => [] + ], + 'server' => [ // The apm-server to connect to 'serverUrl' => 'http://127.0.0.1:8200', diff --git a/src/Providers/ElasticApmServiceProvider.php b/src/Providers/ElasticApmServiceProvider.php index b32201c..2df0d25 100644 --- a/src/Providers/ElasticApmServiceProvider.php +++ b/src/Providers/ElasticApmServiceProvider.php @@ -46,6 +46,7 @@ public function register() ], ['active' => config('elastic.active')], config('elastic-apm.app'), + config('elastic-apm.env'), config('elastic-apm.server') ) );