Sentry client for yii framework.
composer require --prefer-dist "jerryhsia/yii2-sentry" "dev-master"
Configure it in the config/web.php
file.
'components' => [
'errorHandler' => [
'class' => 'jerryhsia\sentry\ErrorHandler',
],
'sentry' => [
'class' => 'jerryhsia\sentry\Sentry',
'dsn' => 'your sentry dsn',
'options' => [
'exclude' => [
'yii\web\NotFoundHttpException',
'yii\web\UnauthorizedHttpException',
'yii\web\BadRequestHttpException',
'yii\web\GoneHttpException',
'yii\web\ForbiddenHttpException',
'yii\web\MethodNotAllowedHttpException'
]
]
]
]