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

Commit e7df3db

Browse files
committed
pass environment filter config to agent
1 parent a3360f9 commit e7df3db

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

config/elastic-apm.php

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
'appVersion' => '',
1313
],
1414

15+
'env' => [
16+
// whitelist environment variables OR send everything
17+
'env' => ['DOCUMENT_ROOT', 'REMOTE_ADDR']
18+
//'env' => []
19+
],
20+
1521
'server' => [
1622
// The apm-server to connect to
1723
'serverUrl' => 'http://127.0.0.1:8200',

src/Providers/ElasticApmServiceProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public function register()
4545
'frameworkVersion' => app()->version(),
4646
],
4747
config('elastic-apm.app'),
48+
config('elastic-apm.env'),
4849
config('elastic-apm.server')
4950
)
5051
);

0 commit comments

Comments
 (0)