notamedia/yii2-sentry

Unusable stack trace (crashed in non-app)

dels07 opened this issue · 0 comments

Hi there,

I tried to configure sentry for yii2 project in our company, here is the configuration used

"notamedia/yii2-sentry": "dev-master",
[
    'class' => 'notamedia\sentry\SentryTarget',
     'dsn' => env('SENTRY_DSN'),
    'context' => true,
    'clientOptions' => [
        'environment' => env('SENTRY_ENV'),
        'attach_stacktrace' => true
    ],
    'logVars' => [],
    'levels' => ['error'],
    'except' => ['yii\web\Session*', 'yii\db\Command*', 'yii\db\Connection\*', 'yii\filters\*', 'yii\db\Exception', 'yii\base\ErrorException*','yii\web\HttpException:404','yii\web\HttpException:400'],
],

However the resulting stack trace are only displaying result from this package and Yii Logger
Screen Shot 2022-03-30 at 16 28 13
Screen Shot 2022-03-30 at 16 29 55

Can you help with correct setup to have usable stack trace?