Skip to content

Commit 54e2974

Browse files
Use environment variables passed via FastCGI (#1113)
Allow passing environment variables from Apache to PHP-FPM to be used as Elastic APM PHP agent configuration
1 parent 9609745 commit 54e2974

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

agent/php/ElasticApm/Impl/Config/EnvVarsRawSnapshotSource.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ public function currentSnapshot(array $optionNameToMeta): RawSnapshotInterface
5454
$optionNameToEnvVarValue = [];
5555

5656
foreach ($optionNameToMeta as $optionName => $optionMeta) {
57-
$envVarValue = getenv(
58-
self::optionNameToEnvVarName($this->envVarNamesPrefix, $optionName),
59-
/* local_only: */ true
60-
);
57+
$envVarValue = getenv(self::optionNameToEnvVarName($this->envVarNamesPrefix, $optionName));
6158
if ($envVarValue !== false) {
6259
$optionNameToEnvVarValue[$optionName] = $envVarValue;
6360
}

0 commit comments

Comments
 (0)