Sentry integration for October CMS
Simply add your Sentry DSN to your .env
file:
SENTRY_LARAVEL_DSN=https://your@dsn.ingest.sentry.io/12345678
To configure this plugin, create a config/sentry.php
file and add whatever configuration you need
according to the Sentry documentation.
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!');
});
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