function ConfigurationResolver::getVariable
5 calls to ConfigurationResolver::getVariable()
- ConfigurationResolver::getBoolean in vendor/
open-telemetry/ api/ Instrumentation/ ConfigurationResolver.php - ConfigurationResolver::getInt in vendor/
open-telemetry/ api/ Instrumentation/ ConfigurationResolver.php - ConfigurationResolver::getList in vendor/
open-telemetry/ api/ Instrumentation/ ConfigurationResolver.php - ConfigurationResolver::getString in vendor/
open-telemetry/ api/ Instrumentation/ ConfigurationResolver.php - ConfigurationResolver::has in vendor/
open-telemetry/ api/ Instrumentation/ ConfigurationResolver.php
File
-
vendor/
open-telemetry/ api/ Instrumentation/ ConfigurationResolver.php, line 53
Class
Namespace
OpenTelemetry\API\InstrumentationCode
private function getVariable(string $name) : ?string {
$value = $_SERVER[$name] ?? null;
if ($value !== false && !self::isEmpty($value)) {
assert(is_string($value));
return $value;
}
$value = getenv($name);
if ($value !== false && !self::isEmpty($value)) {
return $value;
}
$value = ini_get($name);
if ($value !== false && !self::isEmpty($value)) {
return $value;
}
return null;
}