exploitfate / yii2-sentry
Yii2 Sentry package
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.2.0
- ext-excimer: *
- sentry/sdk: ^4.0
- yiisoft/yii2: *
README
Requirements
sudo apt -y install php-excimer
Installation
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist exploitfate/yii2-sentry
Configuration
Add sentry
component to bootstrap and set component config
return [ 'bootstrap' => ['sentry'], // ... 'components' => [ // ... 'sentry' => [ 'class' => 'exploitfate\yii\sentry\Sentry', 'enabled' => false, // optional, default = false 'options' => [ 'dsn' => 'http://1234567890:abcddefg0987654321@sentry.io/7654321', // 'traces_sample_rate' => 1.0, // Set a sampling rate for profiling - this is relative to traces_sample_rate // 'profiles_sample_rate' => 1.0, ], ], // ... ], ];