Sentry not loading in Elastic Bean PHP Environment

I am trying to integrate sentry at my php core project code.

in composer.json file i have following lines:
“require”: {
“php”: “>=5.3.7”,
“php_mysqli”: “*”,
“sentry/sdk”: “^2.2”

I have my code live with elastic bean environment. So i cannot install sentry sdk manually. EB do it automatically for us after looking at composer require file.

I have initialized sentry in my logic file with following line below:

`Sentry\init(['dsn' => 'https://********']);`

After deploying my code and consuming any api. I am getting below error.
Fatal error: Uncaught Error: Call to undefined function Sentry\init() in /var/app/current/v2/index.php:11
Stack trace:
#0 {main}
thrown in /var/app/current/v2/index.php on line 11

After many attempts i was unable to load my sentry.

Please let me know how to initialize in eb environment.