https://github.com/offline-gmbh/oc-sentry-plugin
Sentry integration for October CMS
https://github.com/offline-gmbh/oc-sentry-plugin
error-reporting octobercms octobercms-plugin sentry
Last synced: 9 months ago
JSON representation
Sentry integration for October CMS
- Host: GitHub
- URL: https://github.com/offline-gmbh/oc-sentry-plugin
- Owner: OFFLINE-GmbH
- License: mit
- Created: 2018-06-26T14:10:55.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-28T07:03:02.000Z (about 1 year ago)
- Last Synced: 2025-10-05T11:47:41.804Z (9 months ago)
- Topics: error-reporting, octobercms, octobercms-plugin, sentry
- Language: PHP
- Homepage: https://octobercms.com/plugin/offline-sentry
- Size: 64.5 KB
- Stars: 5
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oc-sentry-plugin
> Sentry integration for October CMS
## Setup
Simply add your Sentry DSN to your `.env` file:
```dotenv
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](https://docs.sentry.io/platforms/php/guides/laravel/configuration/).
## Capture custom messages
Use the following syntax to send custom messages to your Sentry logs.
```php
\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:
```dotenv
SENTRY_LARAVEL_DSN=https://your@dsn.ingest.sentry.io/12345678
```