From a2583316a7de74c35daa515c0ecd04dd110e96a5 Mon Sep 17 00:00:00 2001 From: Pawel Filipczak Date: Wed, 11 Sep 2024 14:11:15 +0200 Subject: [PATCH] Enable Otel SDK loading by default (#89) --- prod/php/ElasticOTel/PhpPartFacade.php | 2 ++ 1 file changed, 2 insertions(+) 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'