winter/wn-sentry-plugin

Sentry.io integration for Winter CMS

Fund package maintenance!
wintercms
Open Collective

Installs: 11 412

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 5

Forks: 4

Open Issues: 0

Type:winter-plugin

v2.2.3 2024-10-22 06:13 UTC

This package is auto-updated.

Last update: 2024-10-22 06:13:46 UTC


README

MIT License

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.