winter / wn-sentry-plugin
Sentry.io integration for Winter CMS
Fund package maintenance!
wintercms
Open Collective
Installs: 12 510
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 4
Open Issues: 0
Type:winter-plugin
Requires
- php: ^7.2|^8.0
- sentry/sentry-laravel: ~3.7|~4.6
README
Integrates the sentry-laravel package into Winter CMS.
Supports:
- Performance & Error monitoring via the Sentry Laravel integration
- Performance & Error monitoring via the Sentry JS integration
Installation
This plugin is available for installation via Composer.
composer require winter/wn-sentry-plugin
After installing the plugin you will need to run the migrations and (if you are using a public folder) republish your public directory.
php artisan migrate
Configuration
If you are using the .env
file for configuration, simply add your Sentry DSN to the environment file as SENTRY_LARAVEL_DSN
or SENTRY_DSN
. If you are not using the .env
file, simply copy plugins/winter/sentry/config/config.php
to config/winter/sentry/config.php
and change the value of dsn
.
After you have provided the DSN, you can go to example.com/debug-sentry
to test that exceptions are being reported to Sentry. Note that by default this route is only enabled when debug mode is enabled, although you can set it to be explicitly enabled or disabled by changing enableTestRoute
in config/winter/sentry/config.php
.