diff --git a/prod/php/ElasticOTel/PhpPartFacade.php b/prod/php/ElasticOTel/PhpPartFacade.php index 4c9e323..bd2c794 100644 --- a/prod/php/ElasticOTel/PhpPartFacade.php +++ b/prod/php/ElasticOTel/PhpPartFacade.php @@ -64,6 +64,8 @@ public static function bootstrap(int $maxEnabledLogLevel, float $requestInitStar __FILE__, __LINE__, __CLASS__, __FUNCTION__ ); + putenv('OTEL_PHP_AUTOLOAD_ENABLED=true'); + if (self::$singletonInstance !== null) { BootstrapStageLogger::logCritical( 'bootstrap() is called even though singleton instance is already created'