Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14 from jblotus/master-fix-env
Browse files Browse the repository at this point in the history
pass environment filter config to agent
  • Loading branch information
philkra authored Oct 19, 2018
2 parents 7285543 + e7df3db commit fce1d1d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/elastic-apm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/Providers/ElasticApmServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function register()
],
['active' => config('elastic.active')],
config('elastic-apm.app'),
config('elastic-apm.env'),
config('elastic-apm.server')
)
);
Expand Down

0 comments on commit fce1d1d

Please sign in to comment.