exploitfate/yii2-sentry

Yii2 Sentry package

v1.0.1 2025-01-23 18:32 UTC

This package is auto-updated.

Last update: 2025-02-23 18:44:39 UTC


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,
            ],
        ],
        // ...
    ],
];