offline/oc-sentry-plugin

Sentry integration for October CMS

Installs: 15 694

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 4

Forks: 8

Open Issues: 0

Type:october-plugin

v3.0.3 2024-03-04 07:11 UTC

README

oc-sentry-plugin

Sentry integration for October CMS

Setup

Simply add your Sentry DSN to your .env file:

SENTRY_LARAVEL_DSN=https://your@dsn.ingest.sentry.io/12345678

Configuration

To configure this plugin, create a config/sentry.php file and add whatever configuration you need according to the Sentry documentation.

Capture custom messages

Use the following syntax to send custom messages to your Sentry logs.

\Sentry\withScope(function (\Sentry\State\Scope $scope): void {
    $scope->setExtras([
        'custom' => 'value'
    ]);

    \Sentry\captureMessage('Something happened!');
});

Upgrade from 2.x to 3.x

In version 3.0, this plugin was simplified considerably. You can now specify your settings via the config/sentry.php file. The old backend settings page is no longer available.

To upgrade to this new version, you must add your Sentry DSN to your .env file:

SENTRY_LARAVEL_DSN=https://your@dsn.ingest.sentry.io/12345678