Yes, it’s a Sage framework https://github.com/roots/sage, the Sentry sdk goes to wordpress root folder /vendor/sentry
This just gave me an idea of maybe trying to initialize Sentry earlier before all the plugins and theme code kicks in.. and it worked! so the solution is to initialize Sentry before any plugin initialization starts, for anyone interested I put the initialization into /config/application.php
, something like this:
/** Sentry */
$dsn = env('SENTRY_DSN', '');
if ($dsn) {
\Sentry\init([ 'dsn' => $dsn ]);
}